From: Luis Alves Date: Mon, 29 Oct 2018 18:21:05 +0000 (+0000) Subject: msg queue: wake thread on new message X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77fc1c05f1b6e9db34ea498063eff0f6bd0a2d37;p=thirdparty%2Ftvheadend.git msg queue: wake thread on new message --- diff --git a/src/profile.c b/src/profile.c index 00570b9fa..4f710b07d 100644 --- a/src/profile.c +++ b/src/profile.c @@ -728,9 +728,8 @@ profile_input_queue(void *opaque, streaming_message_t *sm) psm->psm_sm = sm; pthread_mutex_lock(&prsh->prsh_queue_mutex); if (prsh->prsh_queue_run) { - if (TAILQ_FIRST(&prsh->prsh_queue)) - tvh_cond_signal(&prsh->prsh_queue_cond, 0); TAILQ_INSERT_TAIL(&prsh->prsh_queue, psm, psm_link); + tvh_cond_signal(&prsh->prsh_queue_cond, 0); } else { streaming_msg_free(sm); free(psm);