From 03b76b6755afd9dc0226b7595e0eed1b3b61f586 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 c59af0d71..27523c37a 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -586,6 +586,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) {