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 f0dcdf4d31
commit a69e2ecda5

View file

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