always strip a=mid attributes

Some WebRTC clients include a=mid attributes even when BUNDLE is not in
used. This can cause problems in an answer if the offer originally used
a=mid too, as a mismatch in mid values may upset the client.

Closes #157
pull/162/head
Richard Fuchs 10 years ago
parent 6db99f9811
commit 19567126b8

@ -1657,9 +1657,10 @@ static int process_media_attributes(struct sdp_chopper *chop, struct sdp_media *
case ATTR_MID:
if (MEDIA_ISSET(media, PASSTHRU))
break;
a = attr_get_by_id(&sdp->session->attributes, ATTR_GROUP);
if (a && a->u.group.semantics == GROUP_BUNDLE)
goto strip;
// a = attr_get_by_id(&sdp->session->attributes, ATTR_GROUP);
// if (a && a->u.group.semantics == GROUP_BUNDLE)
// goto strip;
goto strip; // hack/workaround: always remove a=mid
break;
default:

Loading…
Cancel
Save