From: Wim Taymans Date: Mon, 24 Mar 2014 14:35:09 +0000 (+0100) Subject: rtspsrc: use profile to set rtcp caps X-Git-Tag: 1.19.3~509^2~4735 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b59828e0b486598464f64d1f46093876aee78dd;p=platform%2Fupstream%2Fgstreamer.git rtspsrc: use profile to set rtcp caps Use the negotiated profile to set x-rtcp or x-srtcp caps --- diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index ed158550bf..83b0539e16 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -3220,7 +3220,11 @@ gst_rtspsrc_stream_configure_mcast (GstRTSPSrc * src, GstRTSPStream * stream, if (stream->udpsrc[1] == NULL) goto no_element; - caps = gst_caps_new_empty_simple ("application/x-rtcp"); + if (stream->profile == GST_RTSP_PROFILE_SAVP || + stream->profile == GST_RTSP_PROFILE_SAVPF) + caps = gst_caps_new_empty_simple ("application/x-srtcp"); + else + caps = gst_caps_new_empty_simple ("application/x-rtcp"); g_object_set (stream->udpsrc[1], "caps", caps, NULL); gst_caps_unref (caps); @@ -3306,7 +3310,11 @@ gst_rtspsrc_stream_configure_udp (GstRTSPSrc * src, GstRTSPStream * stream, gst_element_set_locked_state (stream->udpsrc[1], TRUE); gst_bin_add (GST_BIN_CAST (src), stream->udpsrc[1]); - caps = gst_caps_new_empty_simple ("application/x-rtcp"); + if (stream->profile == GST_RTSP_PROFILE_SAVP || + stream->profile == GST_RTSP_PROFILE_SAVPF) + caps = gst_caps_new_empty_simple ("application/x-srtcp"); + else + caps = gst_caps_new_empty_simple ("application/x-rtcp"); g_object_set (stream->udpsrc[1], "caps", caps, NULL); gst_caps_unref (caps);