mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
v4l2: we set clock and position on the node now
This commit is contained in:
parent
a4ff7296b2
commit
9a969ac756
2 changed files with 24 additions and 9 deletions
|
|
@ -1154,10 +1154,10 @@ static int mmap_read(struct impl *this)
|
|||
|
||||
pts = SPA_TIMEVAL_TO_TIME(&buf.timestamp);
|
||||
|
||||
if (port->clock) {
|
||||
port->clock->nsec = pts;
|
||||
port->clock->rate = port->rate;
|
||||
port->clock->position = buf.sequence;
|
||||
if (this->clock) {
|
||||
this->clock->nsec = pts;
|
||||
this->clock->rate = port->rate;
|
||||
this->clock->position = buf.sequence;
|
||||
}
|
||||
|
||||
b = &port->buffers[buf.index];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue