]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
profile: do init for all profile sharer members, issue #5409
authorJaroslav Kysela <perex@perex.cz>
Mon, 10 Dec 2018 20:04:44 +0000 (21:04 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 10 Dec 2018 20:04:44 +0000 (21:04 +0100)
src/profile.c

index 59477305df5bdd2f7a4f438370e6b28a9b28bcb4..19ce957491a3fa50bae393fc3d49897f3fcb6eb8 100644 (file)
@@ -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);
   }