TT#14008 shut down codec handler when resetting

closes #1203

Change-Id: I6d4239e9ef5158a53e5e92a139d26a5b622f8aca
(cherry picked from commit 64de499865)
mr9.3
Richard Fuchs 5 years ago
parent b3b6447a12
commit f501842eed

@ -1017,6 +1017,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));

Loading…
Cancel
Save