mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
v4l2: use the buffer time as pts
Don't try to use the seq number as pts, just use the timestamp returned from v4l2 if any so it can be matched against the clock.
This commit is contained in:
parent
09503f0987
commit
6085c0eaee
1 changed files with 3 additions and 1 deletions
|
|
@ -1196,8 +1196,10 @@ static int mmap_read(struct impl *this)
|
|||
b->h->flags = 0;
|
||||
if (buf.flags & V4L2_BUF_FLAG_ERROR)
|
||||
b->h->flags |= SPA_META_HEADER_FLAG_CORRUPTED;
|
||||
b->h->offset = 0;
|
||||
b->h->seq = buf.sequence;
|
||||
b->h->pts = buf.sequence * 1000000000LL / port->rate.denom;
|
||||
b->h->pts = pts;
|
||||
b->h->dts_offset = 0;
|
||||
}
|
||||
|
||||
d = b->outbuf->datas;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue