v4l2: we set clock and position on the node now

This commit is contained in:
Wim Taymans 2018-10-27 10:11:27 +01:00
parent a4ff7296b2
commit 9a969ac756
2 changed files with 24 additions and 9 deletions

View file

@ -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];