From a934085d35a50b5e4306aa66ce188ba0fa148c07 Mon Sep 17 00:00:00 2001 From: Flole998 Date: Mon, 1 Mar 2021 03:32:31 +0100 Subject: [PATCH] Clean transcoding when htsp based transcoding is used --- src/profile.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/profile.c b/src/profile.c index 76aa1a8c1..17bdddf2e 100644 --- a/src/profile.c +++ b/src/profile.c @@ -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; -- 2.47.2