From c79a30bd8ad75fdd931623ff7b1832fb4a0a5f72 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Thu, 2 May 2019 15:08:34 +0200 Subject: [PATCH] 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. --- src/gst/gstpipewiresrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c index 4b6a06bcf..baa9411c1 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);