From a69e2ecda539b96539dd66499d2b1f945828518a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 14 Mar 2024 16:15:17 +0100 Subject: [PATCH] gst: fall back to buffer time when no header This at least sets some form of timestamp on the buffers. --- src/gst/gstpipewiresrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c index dd7b942cd..3f0470e6a 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -585,6 +585,9 @@ static GstBuffer *dequeue_buffer(GstPipeWireSrc *pwsrc) GST_BUFFER_DTS (buf) = GST_BUFFER_PTS (buf) + h->dts_offset; } GST_BUFFER_OFFSET (buf) = h->seq; + } else { + GST_BUFFER_PTS (buf) = b->time; + GST_BUFFER_DTS (buf) = b->time; } crop = data->crop; if (crop) {