rtprtxsend: Copy over timestamps from the orignal buffers to the RTX buffers
authorSebastian Dröge <sebastian@centricular.com>
Tue, 14 Apr 2015 11:56:38 +0000 (13:56 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 16 Apr 2015 15:33:37 +0000 (17:33 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=747394

gst/rtpmanager/gstrtprtxsend.c

index 7ba0490..8859dec 100644 (file)
@@ -430,6 +430,9 @@ gst_rtp_rtx_buffer_new (GstRtpRtxSend * rtx, GstBuffer * buffer)
   gst_rtp_buffer_set_padding (&new_rtp, FALSE);
   gst_rtp_buffer_unmap (&new_rtp);
 
+  /* Copy over timestamps */
+  gst_buffer_copy_into (new_buffer, buffer, GST_BUFFER_COPY_TIMESTAMPS, 0, -1);
+
   return new_buffer;
 }