From 9ad53d9d1942a4e197c49e04106a574c89c3f9b6 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 30 Apr 2022 21:01:34 +0300 Subject: [PATCH] bluez5: a2dp-source should not stop on codec decode failures A2DP source should continue trying to decode, even if garbled data is received. --- spa/plugins/bluez5/a2dp-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/a2dp-source.c b/spa/plugins/bluez5/a2dp-source.c index 120b5231d..446b040d6 100644 --- a/spa/plugins/bluez5/a2dp-source.c +++ b/spa/plugins/bluez5/a2dp-source.c @@ -509,8 +509,8 @@ static void a2dp_on_ready_read(struct spa_source *source) decoded = decode_data(this, this->buffer_read, size_read, read_decoded, sizeof (read_decoded)); if (decoded < 0) { - spa_log_error(this->log, "failed to decode data: %d", decoded); - goto stop; + spa_log_debug(this->log, "failed to decode data: %d", decoded); + return; } if (decoded == 0) return;