bluez5: media-source: transport not started is not an error

Transport not being started should not be considered IO error in
produce_buffer.
This commit is contained in:
Pauli Virtanen 2023-04-18 23:10:51 +03:00
parent b619616c2a
commit 11df633b9b

View file

@ -1468,7 +1468,7 @@ static int produce_buffer(struct impl *this)
io->buffer_id = SPA_ID_INVALID; io->buffer_id = SPA_ID_INVALID;
} }
if (!this->source.loop) { if (this->transport_started && !this->source.loop) {
io->status = -EIO; io->status = -EIO;
return SPA_STATUS_STOPPED; return SPA_STATUS_STOPPED;
} }