mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
sdpdemux: Add SDP message (aka session) attributes to the caps too
They apply to all medias, and if overridden by the specific media then they would also be overridden just below in the created caps. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6086>
This commit is contained in:
parent
502e995677
commit
db52137c1a
1 changed files with 1 additions and 0 deletions
|
@ -418,6 +418,7 @@ gst_sdp_demux_create_stream (GstSDPDemux * demux, GstSDPMessage * sdp, gint idx)
|
||||||
s = gst_caps_get_structure (stream->caps, 0);
|
s = gst_caps_get_structure (stream->caps, 0);
|
||||||
gst_structure_set_name (s, "application/x-rtp");
|
gst_structure_set_name (s, "application/x-rtp");
|
||||||
|
|
||||||
|
gst_sdp_message_attributes_to_caps (sdp, stream->caps);
|
||||||
gst_sdp_media_attributes_to_caps (media, stream->caps);
|
gst_sdp_media_attributes_to_caps (media, stream->caps);
|
||||||
|
|
||||||
if (stream->pt >= 96) {
|
if (stream->pt >= 96) {
|
||||||
|
|
Loading…
Reference in a new issue