gst: fall back to buffer time when no header

This at least sets some form of timestamp on the buffers.
This commit is contained in:
Wim Taymans 2024-03-14 16:15:17 +01:00
parent e52a56bf68
commit 03b76b6755

View file

@ -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) {