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