summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-05-02 15:08:34 +0200
committerWim Taymans <wtaymans@redhat.com>2019-05-23 10:15:43 +0200
commitc79a30bd8ad75fdd931623ff7b1832fb4a0a5f72 (patch)
treeddcdf40665b0868a5d90cb65fcdf54b05f2088c3
parent10ec2859110c9bfda841bb21f9dda4e33b01702d (diff)
gstpipewiresrc: clear timestamps when processing a buffer
This is necessary for 'do-timestamp' to work if the source provides no timestamps. Without this, the timestamp from the first use will remain, because the basesrc only overwrites timestamps that are GST_CLOCK_TIME_NONE.
-rw-r--r--src/gst/gstpipewiresrc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c
index 4b6a06bc..baa9411c 100644
--- a/src/gst/gstpipewiresrc.c
+++ b/src/gst/gstpipewiresrc.c
@@ -411,6 +411,9 @@ on_process (void *_data)
GST_LOG_OBJECT (pwsrc, "got new buffer %p", buf);
+ GST_BUFFER_PTS (buf) = GST_CLOCK_TIME_NONE;
+ GST_BUFFER_DTS (buf) = GST_CLOCK_TIME_NONE;
+
h = data->header;
if (h) {
GST_INFO ("pts %" G_GUINT64_FORMAT ", dts_offset %"G_GUINT64_FORMAT, h->pts, h->dts_offset);