From 11df633b9b809bbe35b4617462991de1efb216f2 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Tue, 18 Apr 2023 23:10:51 +0300 Subject: [PATCH] bluez5: media-source: transport not started is not an error Transport not being started should not be considered IO error in produce_buffer. --- spa/plugins/bluez5/media-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/media-source.c b/spa/plugins/bluez5/media-source.c index 03e337a39..cfa8c1bd2 100644 --- a/spa/plugins/bluez5/media-source.c +++ b/spa/plugins/bluez5/media-source.c @@ -1468,7 +1468,7 @@ static int produce_buffer(struct impl *this) io->buffer_id = SPA_ID_INVALID; } - if (!this->source.loop) { + if (this->transport_started && !this->source.loop) { io->status = -EIO; return SPA_STATUS_STOPPED; }