From 397c4ed7a09aa0a366d881698641ade01b49746b Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Tue, 14 Jan 2014 13:08:18 +0100 Subject: [PATCH] rtprtxsend: remove wrong check for payload type not having been set 1) pt can be lower than 96 2) there is no point in checking that because rtprtxsend will not even store buffers for payload types that it doesn't know about, so this case will never be reached --- gst/rtpmanager/gstrtprtxsend.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gst/rtpmanager/gstrtprtxsend.c b/gst/rtpmanager/gstrtprtxsend.c index 2eaa84daef..d5fe267b38 100644 --- a/gst/rtpmanager/gstrtprtxsend.c +++ b/gst/rtpmanager/gstrtprtxsend.c @@ -338,11 +338,6 @@ gst_rtp_rtx_buffer_new (GstRtpRtxSend * rtx, GstBuffer * buffer) /* gst_rtp_buffer_map does not map the payload so do it now */ gst_rtp_buffer_get_payload (&rtp); - /* If payload type is not set through SDP/property then - * just bump the value */ - if (fmtp < 96) - fmtp = gst_rtp_buffer_get_payload_type (&rtp) + 1; - /* copy fixed header */ mem = gst_memory_copy (rtp.map[0].memory, 0, rtp.size[0]); gst_buffer_append_memory (new_buffer, mem);