Commit 665d14a2 authored by Aleix Conchillo Flaqué's avatar Aleix Conchillo Flaqué Committed by Sebastian Dröge
Browse files

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
parent 271501f6
......@@ -4386,6 +4386,10 @@ gst_rtspsrc_handle_data (GstRTSPSrc * src, GstRTSPMessage * message)
gst_event_new_caps (caps));
}
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]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment