bluez5: support Google's Opus A2DP vendor codec

This commit is contained in:
Pauli Virtanen 2024-01-28 22:15:00 +02:00
parent ff0305dada
commit 61c585c8e6
7 changed files with 570 additions and 1 deletions

View file

@ -1228,8 +1228,11 @@ static int transport_start(struct impl *this)
&port->current_format,
this->codec_props,
this->transport->write_mtu);
if (this->codec_data == NULL)
if (this->codec_data == NULL) {
spa_log_error(this->log, "%p: codec %s initialization failed", this,
this->codec->description);
return -EIO;
}
} else {
this->own_codec_data = false;
this->codec_data = this->transport->iso_io->codec_data;