summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/totem-video-thumbnailer.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index 5f0d4ab75..ec2c5c4af 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -606,6 +606,11 @@ int main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+ /* Call before the global thread pool is setup */
+ errno = 0;
+ if (nice (20) != 20 && errno != 0)
+ g_warning ("Couldn't change nice value of process.");
+
context = g_option_context_new ("Thumbnail movies");
options = gst_init_get_option_group ();
g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
@@ -617,14 +622,6 @@ int main (int argc, char *argv[])
return 1;
}
-#ifdef G_OS_UNIX
- if (time_limit != FALSE) {
- errno = 0;
- if (nice (20) != 20 && errno != 0)
- g_warning ("Couldn't change nice value of process.");
- }
-#endif
-
if (print_progress) {
fcntl (fileno (stdout), F_SETFL, O_NONBLOCK);
setbuf (stdout, NULL);