]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Clean transcoding when htsp based transcoding is used
authorFlole998 <Flole998@users.noreply.github.com>
Mon, 1 Mar 2021 02:32:31 +0000 (03:32 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Mar 2021 02:32:31 +0000 (03:32 +0100)
src/profile.c

index 76aa1a8c15fd7daafe1333c90e984bde7bb98fff..17bdddf2e962c777b7ea907ad3b89abd4cd03af1 100644 (file)
@@ -1005,6 +1005,11 @@ profile_sharer_destroy(profile_chain_t *prch)
         prsh->prsh_master = NULL;
       tvh_mutex_unlock(&prsh->prsh_queue_mutex);
     } else {
+#if ENABLE_LIBAV
+      if (prsh->prsh_transcoder)
+        transcoder_destroy(prsh->prsh_transcoder);
+      prsh->prsh_transcoder = NULL;
+#endif
       tvh_mutex_lock(&prsh->prsh_queue_mutex);
       prch->prch_sharer = NULL;
       prch->prch_post_share = NULL;