bluez5: fix BAP codec sink flag usage

MEDIA_CODEC_FLAG_SINK means the local endpoint is sink. Have this the
same way for BAP, no need to invert it.
This commit is contained in:
Pauli Virtanen 2022-10-23 16:50:03 +03:00
parent d0d783541d
commit cc4e5a89b4
3 changed files with 3 additions and 9 deletions

View file

@ -930,10 +930,7 @@ static int do_start(struct impl *this)
spa_log_debug(this->log, "Transport configuration:");
spa_log_hexdump(this->log, SPA_LOG_LEVEL_DEBUG, 2, conf, (size_t)size);
if (this->codec->bap)
flags = MEDIA_CODEC_FLAG_SINK;
else
flags = this->is_duplex ? MEDIA_CODEC_FLAG_SINK : 0;
flags = this->is_duplex ? MEDIA_CODEC_FLAG_SINK : 0;
this->codec_data = this->codec->init(this->codec,
flags,