gst/rtp/gstrtpmp4apay.c: Copy incomming timestamp to outgoing packets.
authorWim Taymans <wim.taymans@gmail.com>
Mon, 8 Dec 2008 12:37:45 +0000 (12:37 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 8 Dec 2008 12:37:45 +0000 (12:37 +0000)
Original commit message from CVS:
* gst/rtp/gstrtpmp4apay.c: (gst_rtp_mp4a_pay_handle_buffer):
Copy incomming timestamp to outgoing packets.

ChangeLog
gst/rtp/gstrtpmp4apay.c

index 682d5ef..c3ccac7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-12-08  Wim Taymans  <wim.taymans@collabora.co.uk>
 
+       * gst/rtp/gstrtpmp4apay.c: (gst_rtp_mp4a_pay_handle_buffer):
+       Copy incomming timestamp to outgoing packets.
+
+2008-12-08  Wim Taymans  <wim.taymans@collabora.co.uk>
+
        * gst/rtp/gstrtpmp4vpay.c: (gst_rtp_mp4v_pay_flush),
        (gst_rtp_mp4v_pay_event):
        Don't try to push packets before we could find a valid config
index 3bea5e3..efa3095 100644 (file)
@@ -366,6 +366,7 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload,
   guint count, mtu, size;
   guint8 *data;
   gboolean fragmented;
+  GstClockTime timestamp;
 
   ret = GST_FLOW_OK;
 
@@ -373,6 +374,7 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload,
 
   size = GST_BUFFER_SIZE (buffer);
   data = GST_BUFFER_DATA (buffer);
+  timestamp = GST_BUFFER_TIMESTAMP (buffer);
 
   fragmented = FALSE;
   mtu = GST_BASE_RTP_PAYLOAD_MTU (rtpmp4apay);
@@ -432,6 +434,9 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload,
     /* marker only if the packet is complete */
     gst_rtp_buffer_set_marker (outbuf, size == 0);
 
+    /* copy incomming timestamp (if any) to outgoing buffers */
+    GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
+
     ret = gst_basertppayload_push (GST_BASE_RTP_PAYLOAD (rtpmp4apay), outbuf);
 
     fragmented = TRUE;