From: Jaroslav Kysela Date: Tue, 30 Jan 2018 17:44:19 +0000 (+0100) Subject: main: create mtimer thread earlier X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceba3e4acd7ae23e59d8bf169e75b31771754374;p=thirdparty%2Ftvheadend.git main: create mtimer thread earlier --- diff --git a/src/main.c b/src/main.c index 776e9958f..989cfa1f9 100644 --- a/src/main.c +++ b/src/main.c @@ -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);