From 3922247356b94e96f84b3c404f1049099338d3cb Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 15 Jun 2025 14:35:32 +0300 Subject: [PATCH] bluez5: sco-source: pass read mtu to codec --- spa/plugins/bluez5/sco-source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/bluez5/sco-source.c b/spa/plugins/bluez5/sco-source.c index ca3c75047..34568a764 100644 --- a/spa/plugins/bluez5/sco-source.c +++ b/spa/plugins/bluez5/sco-source.c @@ -566,7 +566,8 @@ static int transport_start(struct impl *this) port->current_format.info.raw.rate * 40 / 1000); /* init codec */ - this->codec_data = this->codec->init(this->codec, 0, NULL, 0, NULL, NULL, 0); + this->codec_data = this->codec->init(this->codec, 0, NULL, 0, NULL, NULL, + this->transport->read_mtu); if (!this->codec_data) { spa_log_error(this->log, "codec init failed"); res = -EINVAL;