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:
Aleix Conchillo Flaqué 2016-01-12 14:01:21 -08:00 committed by Sebastian Dröge
parent 271501f657
commit 665d14a2a0

View file

@ -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],