bluez5: a2dp-sink: stop flushing if source was removed

The flush source gets removed on I/O error. We should not continue
flushing after that.
This commit is contained in:
Pauli Virtanen 2022-03-06 16:47:25 +02:00
parent 7ade8fa8fb
commit d66e9f1ae1

View file

@ -579,6 +579,11 @@ static int flush_data(struct impl *this, uint64_t now_time)
uint32_t total_frames; uint32_t total_frames;
struct port *port = &this->port; struct port *port = &this->port;
if (!this->flush_source.loop) {
/* I/O in error state */
return -EIO;
}
total_frames = 0; total_frames = 0;
again: again:
written = 0; written = 0;