mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue