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.
parent 271501f6
......@@ -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");
caps = gst_caps_new_empty_simple ("application/x-rtcp");
if (ostream->udpsrc[1]) {
gst_element_send_event (ostream->udpsrc[1],
Supports Markdown
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