mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-14 20:02:38 +00:00
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:
parent
f0dcdf4d31
commit
a69e2ecda5
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue