From 665d14a2a0e741c5b6153fce0b0a03ad93ea7968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Tue, 12 Jan 2016 14:01:21 -0800 Subject: [PATCH] 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 --- gst/rtsp/gstrtspsrc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 779cdee1ba..acbddb000d 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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],