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
This commit is contained in:
George Kiagiadakis 2014-01-14 13:08:18 +01:00
parent 55746eaa4c
commit 397c4ed7a0

View file

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