bluez5: implement freewheel in sink

We need to skip all samples.
This commit is contained in:
Wim Taymans 2022-05-30 09:54:22 +02:00
parent 0cdcd04f77
commit a58d815024

View file

@ -1460,6 +1460,11 @@ static int impl_node_process(void *object)
io = port->io;
spa_return_val_if_fail(io != NULL, -EIO);
if (this->position && this->position->clock.flags & SPA_IO_CLOCK_FLAG_FREEWHEEL) {
io->status = SPA_STATUS_NEED_DATA;
return SPA_STATUS_HAVE_DATA;
}
if (io->status == SPA_STATUS_HAVE_DATA && io->buffer_id < port->n_buffers) {
struct buffer *b = &port->buffers[io->buffer_id];