summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorWouter Cloetens <wouter@mind.be>2007-12-11 11:05:57 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-12-11 11:05:57 +0000
commitdbf28d28e755089fdb13790ca930f1511c17adc0 (patch)
treed6c5194d64afad7757509f48fe4b59d63db7e625 /gst
parentb22993e9b21b1be698079f206c3cf33b198f0c2b (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.c5
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;