mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1164582 - Report an error when the appdata portion of a webrtc msid is missing. r=mt
This commit is contained in:
parent
c4edddd50b
commit
c6f631ba3f
@ -610,6 +610,11 @@ JsepSessionImpl::GetIdsFromMsid(const Sdp& sdp,
|
||||
|
||||
for (auto i = allMsids.begin(); i != allMsids.end(); ++i) {
|
||||
if (allMsidsAreWebrtc || webrtcMsids.count(i->identifier)) {
|
||||
if (i->appdata.empty()) {
|
||||
JSEP_SET_ERROR("Invalid webrtc msid at level " << msection.GetLevel()
|
||||
<< ": Missing track id.");
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
}
|
||||
if (!found) {
|
||||
*streamId = i->identifier;
|
||||
*trackId = i->appdata;
|
||||
|
Loading…
Reference in New Issue
Block a user