sco-sink: don't stop timeouts if more data is needed

The sink timeouts need to continue even if there is currently not enough
data, as otherwise playback will stop.
This commit is contained in:
Pauli Virtanen 2020-12-31 00:15:27 +02:00
parent d99ac615b2
commit d1b1b84935

View file

@ -349,6 +349,10 @@ static void flush_data(struct impl *this)
port->current_buffer = NULL;
port->io->status = SPA_STATUS_NEED_DATA;
spa_node_call_ready(&this->callbacks, SPA_STATUS_NEED_DATA);
next_timeout = (this->transport->write_mtu / port->frame_size
* SPA_NSEC_PER_SEC / port->current_format.info.raw.rate);
set_timeout(this, next_timeout);
return;
}