rtprtxsend: remove wrong check for payload type not having been set
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 14 Jan 2014 12:08:18 +0000 (13:08 +0100)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Wed, 15 Jan 2014 09:13:12 +0000 (10:13 +0100)
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

index 2eaa84d..d5fe267 100644 (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);