diff options
author | Wouter Cloetens <wouter@mind.be> | 2007-12-11 11:05:57 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-12-11 11:05:57 +0000 |
commit | dbf28d28e755089fdb13790ca930f1511c17adc0 (patch) | |
tree | d6c5194d64afad7757509f48fe4b59d63db7e625 /gst | |
parent | b22993e9b21b1be698079f206c3cf33b198f0c2b (diff) |
gst/multipart/multipartdemux.c: Copy timestamp from input to output. Not very perfect yet but better than nothing. Fi...
Original commit message from CVS:
Patch by: Wouter Cloetens <wouter at mind dot be>
* gst/multipart/multipartdemux.c: (gst_multipart_demux_chain):
Copy timestamp from input to output. Not very perfect yet but better
than nothing. Fixes #503023.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/multipart/multipartdemux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/multipart/multipartdemux.c b/gst/multipart/multipartdemux.c index c5f9f3904..67cb73720 100644 --- a/gst/multipart/multipartdemux.c +++ b/gst/multipart/multipartdemux.c @@ -527,8 +527,11 @@ gst_multipart_demux_chain (GstPad * pad, GstBuffer * buf) gst_pad_push_event (srcpad->pad, event); GST_BUFFER_TIMESTAMP (outbuf) = 0; } else { - GST_BUFFER_TIMESTAMP (outbuf) = -1; + GST_BUFFER_TIMESTAMP (outbuf) = GST_BUFFER_TIMESTAMP (buf); } + GST_DEBUG_OBJECT (multipart, + "pushing buffer with timestamp %" GST_TIME_FORMAT, + GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (outbuf))); res = gst_pad_push (srcpad->pad, outbuf); if (res != GST_FLOW_OK) break; |