]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
main: create mtimer thread earlier
authorJaroslav Kysela <perex@perex.cz>
Tue, 30 Jan 2018 17:44:19 +0000 (18:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 30 Jan 2018 17:44:19 +0000 (18:44 +0100)
src/main.c

index 776e9958f78a6ac77a0567551060efd58a3be40b..989cfa1f9f21cf5926aedfec3ea44a01d93fd9e2 100644 (file)
@@ -1197,6 +1197,7 @@ main(int argc, char **argv)
   epg_in_load = 1;
 
   tvhthread_create(&mtimer_tick_tid, NULL, mtimer_tick_thread, NULL, "mtick");
+  tvhthread_create(&mtimer_tid, NULL, mtimer_thread, NULL, "mtimer");
   tvhthread_create(&tasklet_tid, NULL, tasklet_thread, NULL, "tasklet");
 
 #if CONFIG_LINUXDVB_CA
@@ -1281,7 +1282,6 @@ main(int argc, char **argv)
   if(opt_abort)
     abort();
 
-  tvhthread_create(&mtimer_tid, NULL, mtimer_thread, NULL, "mtimer");
   mainloop();
   pthread_mutex_lock(&global_lock);
   tvh_cond_signal(&mtimer_cond, 0);