From 0bf3eab4d67462cda2e21e065daa5014d4ec9d79 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 6 Nov 2018 09:05:26 -0500 Subject: [PATCH] convert codec ops to no-op for legacy control protocols fixes #652 Change-Id: Ie6bc6529e43e3027cdcfc6cb22275b8b0145b69a --- daemon/codec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon/codec.c b/daemon/codec.c index eafa8f84b..b8a169fca 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1149,6 +1149,9 @@ static int __revert_codec_strip(GHashTable *removed, const str *codec, void codec_rtp_payload_types(struct call_media *media, struct call_media *other_media, GQueue *types, const struct sdp_ng_flags *flags) { + if (!flags) + return; + // 'media' = receiver of this offer/answer; 'other_media' = sender of this offer/answer struct call *call = media->call; struct rtp_payload_type *pt;