mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
sdp: parse sdp attributes in case that sdp message doesn't contain mikey message
https://bugzilla.gnome.org/show_bug.cgi?id=766204
This commit is contained in:
parent
dc8120f298
commit
825c150e9d
1 changed files with 18 additions and 8 deletions
|
@ -3782,12 +3782,17 @@ gst_sdp_message_attributes_to_caps (const GstSDPMessage * msg, GstCaps * caps)
|
|||
|
||||
res = gst_sdp_message_parse_keymgmt (msg, &mikey);
|
||||
if (mikey) {
|
||||
if (gst_mikey_message_to_caps (mikey, caps)) {
|
||||
res = GST_SDP_EINVAL;
|
||||
if (gst_mikey_message_to_caps (mikey, caps))
|
||||
res = sdp_add_attributes_to_caps (msg->attributes, caps);
|
||||
gst_mikey_message_unref (mikey);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
res = sdp_add_attributes_to_caps (msg->attributes, caps);
|
||||
|
||||
done:
|
||||
if (mikey)
|
||||
gst_mikey_message_unref (mikey);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -3813,11 +3818,16 @@ gst_sdp_media_attributes_to_caps (const GstSDPMedia * media, GstCaps * caps)
|
|||
|
||||
res = gst_sdp_media_parse_keymgmt (media, &mikey);
|
||||
if (mikey) {
|
||||
if (!gst_mikey_message_to_caps (mikey, caps)) {
|
||||
res = GST_SDP_EINVAL;
|
||||
if (gst_mikey_message_to_caps (mikey, caps))
|
||||
res = sdp_add_attributes_to_caps (media->attributes, caps);
|
||||
gst_mikey_message_unref (mikey);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
res = sdp_add_attributes_to_caps (media->attributes, caps);
|
||||
|
||||
done:
|
||||
if (mikey)
|
||||
gst_mikey_message_unref (mikey);
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue