From d174374551ebcea340393eb9aae3ad62213c8ca1 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 16 Feb 2021 09:51:24 -0500 Subject: [PATCH] TT#14008 fix potential failed assertion Change-Id: Ie4912bd5395802b51293d13c929a02374fa9b0f0 --- daemon/codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/codec.c b/daemon/codec.c index ff81b6a11..7410bd088 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -3415,7 +3415,7 @@ void codec_tracker_finish(struct call_media *media, struct call_media *other_med } struct codec_handler *existing_handler = existing_pt ? codec_handler_get(media, existing_pt->payload_type) : NULL; - if (existing_pt && existing_handler) { + if (existing_pt && existing_handler && existing_handler->dest_pt.codec_def) { // since this happens after we ran through the codec matchup, we must create the appropriate handler here struct codec_handler *handler = __get_pt_handler(media, pt); // duplicate the codec handler of the existing PT