mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
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:
parent
7ade8fa8fb
commit
d66e9f1ae1
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue