Browse Source

TT#14008 shut down codec handler when resetting

closes #1203

Change-Id: I6d4239e9ef5158a53e5e92a139d26a5b622f8aca
pull/1216/head
Richard Fuchs 5 years ago
parent
commit
64de499865
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      daemon/codec.c

+ 1
- 0
daemon/codec.c View File

@ -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));


Loading…
Cancel
Save