From 64de499865dc0b0127c943e7d432f0891da6cbf7 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 17 Mar 2021 12:12:33 -0400 Subject: [PATCH] TT#14008 shut down codec handler when resetting closes #1203 Change-Id: I6d4239e9ef5158a53e5e92a139d26a5b622f8aca --- daemon/codec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/codec.c b/daemon/codec.c index ee6f1c40d..af444e426 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1022,6 +1022,7 @@ static struct codec_handler *__get_pt_handler(struct call_media *receiver, struc // make sure existing handler matches this PT if (rtp_payload_type_cmp(pt, &handler->source_pt)) { ilogs(codec, LOG_DEBUG, "Resetting codec handler for PT %u", pt->payload_type); + __handler_shutdown(handler); handler = NULL; g_atomic_pointer_set(&receiver->codec_handler_cache, NULL); g_hash_table_remove(receiver->codec_handlers, GINT_TO_POINTER(pt->payload_type));