mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: implement freewheel in sink
We need to skip all samples.
This commit is contained in:
parent
0cdcd04f77
commit
a58d815024
1 changed files with 5 additions and 0 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue