rtsp-sdp: Only add RTX to the SDP when using a feedback profile

This commit is contained in:
Sebastian Dröge 2015-05-04 16:31:20 +02:00
parent 4ff22ef6d2
commit ec2c500a9d

View file

@ -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);