mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-21 10:16:14 +00:00
v4l2: set pts correctly
The pts is supposed to be go in sync with the clock. Our clock is based on sequence numbers so translate the PTS to this as well.
This commit is contained in:
parent
26fa9eae39
commit
b31832dac9
|
@ -1170,7 +1170,7 @@ static int mmap_read(struct impl *this)
|
|||
if (buf.flags & V4L2_BUF_FLAG_ERROR)
|
||||
b->h->flags |= SPA_META_HEADER_FLAG_CORRUPTED;
|
||||
b->h->seq = buf.sequence;
|
||||
b->h->pts = pts;
|
||||
b->h->pts = buf.sequence * 1000000000LL / port->rate.denom;
|
||||
}
|
||||
|
||||
d = b->outbuf->datas;
|
||||
|
|
Loading…
Reference in a new issue