diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-12-08 12:37:45 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-12-08 12:37:45 +0000 |
commit | 0e280fb120083c8e8bc36a77a00c2cc9924d2efb (patch) | |
tree | 5988aa7fcec8ee7c2d0cc73a5bf97e9e0da32549 /gst/rtp | |
parent | 90adf4b958e1116272ef96f40f648add46123fc6 (diff) |
gst/rtp/gstrtpmp4apay.c: Copy incomming timestamp to outgoing packets.
Original commit message from CVS:
* gst/rtp/gstrtpmp4apay.c: (gst_rtp_mp4a_pay_handle_buffer):
Copy incomming timestamp to outgoing packets.
Diffstat (limited to 'gst/rtp')
-rw-r--r-- | gst/rtp/gstrtpmp4apay.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpmp4apay.c b/gst/rtp/gstrtpmp4apay.c index 3bea5e3b..efa30955 100644 --- a/gst/rtp/gstrtpmp4apay.c +++ b/gst/rtp/gstrtpmp4apay.c @@ -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; |