From: Jaroslav Kysela Date: Mon, 10 Dec 2018 20:04:44 +0000 (+0100) Subject: profile: do init for all profile sharer members, issue #5409 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e4aa820afe5030c15d4c4a039ff5753dbc17026;p=thirdparty%2Ftvheadend.git profile: do init for all profile sharer members, issue #5409 --- diff --git a/src/profile.c b/src/profile.c index 59477305d..19ce95749 100644 --- a/src/profile.c +++ b/src/profile.c @@ -864,11 +864,9 @@ profile_sharer_find(profile_chain_t *prch) if (!prsh) { prsh = calloc(1, sizeof(*prsh)); prsh->prsh_do_queue = do_queue; - if (do_queue) { - tvh_mutex_init(&prsh->prsh_queue_mutex, NULL); - tvh_cond_init(&prsh->prsh_queue_cond, 1); - TAILQ_INIT(&prsh->prsh_queue); - } + tvh_mutex_init(&prsh->prsh_queue_mutex, NULL); + tvh_cond_init(&prsh->prsh_queue_cond, 1); + TAILQ_INIT(&prsh->prsh_queue); streaming_target_init(&prsh->prsh_input, &profile_sharer_input_ops, prsh, 0); LIST_INIT(&prsh->prsh_chains); }