]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9654 regression
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jan 2017 21:15:05 +0000 (15:15 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 16 Jan 2017 21:15:05 +0000 (15:15 -0600)
src/switch_core_media.c

index f2457b200a5df5f1558e73f5344b6d194f949fc8..2f4a9fae78f11f1b1dfe706febd698fba8743315 100644 (file)
@@ -5438,7 +5438,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
                                                vmatch = strcasecmp(rm_encoding, imp->iananame) ? 0 : 1;
                                        }
 
-                                       if (sdp_type == SDP_TYPE_RESPONSE && vmatch && map->rm_fmtp && consider_video_fmtp) {
+                                       if (sdp_type == SDP_TYPE_RESPONSE && consider_video_fmtp && vmatch && !zstr(map->rm_fmtp) && !zstr(smh->fmtps[i])) {
                                                vmatch = !strcasecmp(smh->fmtps[i], map->rm_fmtp);
                                        }