mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
rtspsrc: handle rtcp/srtcp caps properly when using interleaved data
We check the stream profile and use the proper RTCP caps: application/x-srtcp if we are using a secure profile and application/x-rtcp otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=760556
This commit is contained in:
parent
271501f657
commit
665d14a2a0
1 changed files with 5 additions and 1 deletions
|
@ -4386,7 +4386,11 @@ gst_rtspsrc_handle_data (GstRTSPSrc * src, GstRTSPMessage * message)
|
|||
gst_event_new_caps (caps));
|
||||
}
|
||||
|
||||
caps = gst_caps_new_empty_simple ("application/x-rtcp");
|
||||
if (ostream->profile == GST_RTSP_PROFILE_SAVP ||
|
||||
ostream->profile == GST_RTSP_PROFILE_SAVPF)
|
||||
caps = gst_caps_new_empty_simple ("application/x-srtcp");
|
||||
else
|
||||
caps = gst_caps_new_empty_simple ("application/x-rtcp");
|
||||
|
||||
if (ostream->udpsrc[1]) {
|
||||
gst_element_send_event (ostream->udpsrc[1],
|
||||
|
|
Loading…
Reference in a new issue