bluez5: a2dp-source should not stop on codec decode failures

A2DP source should continue trying to decode, even if garbled data is
received.
This commit is contained in:
Pauli Virtanen 2022-04-30 21:01:34 +03:00
parent 3d4eafcb0f
commit 9ad53d9d19

View file

@ -509,8 +509,8 @@ static void a2dp_on_ready_read(struct spa_source *source)
decoded = decode_data(this, this->buffer_read, size_read, decoded = decode_data(this, this->buffer_read, size_read,
read_decoded, sizeof (read_decoded)); read_decoded, sizeof (read_decoded));
if (decoded < 0) { if (decoded < 0) {
spa_log_error(this->log, "failed to decode data: %d", decoded); spa_log_debug(this->log, "failed to decode data: %d", decoded);
goto stop; return;
} }
if (decoded == 0) if (decoded == 0)
return; return;