From 85e2eba941d20d84eba24e95916c081ada733ec7 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 9458a23c5..77d43c9d9 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -409,6 +409,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);