From: Sebastian Dröge Date: Mon, 4 May 2015 14:31:20 +0000 (+0200) Subject: rtsp-sdp: Only add RTX to the SDP when using a feedback profile X-Git-Tag: 1.6.0~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec2c500a9dc04f76970c1753f448064de62231cd;p=platform%2Fupstream%2Fgst-rtsp-server.git rtsp-sdp: Only add RTX to the SDP when using a feedback profile --- diff --git a/gst/rtsp-server/rtsp-sdp.c b/gst/rtsp-server/rtsp-sdp.c index 421525d..393b099 100644 --- a/gst/rtsp-server/rtsp-sdp.c +++ b/gst/rtsp-server/rtsp-sdp.c @@ -384,7 +384,8 @@ make_media (GstSDPMessage * sdp, GstSDPInfo * info, GstRTSPMedia * media, update_sdp_from_tags (stream, smedia); - if ((rtx_time = gst_rtsp_stream_get_retransmission_time (stream))) { + if ((profile == GST_RTSP_PROFILE_AVPF || profile == GST_RTSP_PROFILE_SAVPF) + && (rtx_time = gst_rtsp_stream_get_retransmission_time (stream))) { /* ssrc multiplexed retransmit functionality */ guint rtx_pt = gst_rtsp_stream_get_retransmission_pt (stream);