From 395a30b5d6a6162f64e8ff003450a460268034fd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 2 Nov 2020 09:16:59 +0100 Subject: [PATCH] a2dp: fix sign of out_decoded --- spa/plugins/bluez5/a2dp-codec-sbc.c | 2 +- spa/plugins/bluez5/a2dp-sink.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/bluez5/a2dp-codec-sbc.c b/spa/plugins/bluez5/a2dp-codec-sbc.c index bb9a1f5a8..0da1a02e2 100644 --- a/spa/plugins/bluez5/a2dp-codec-sbc.c +++ b/spa/plugins/bluez5/a2dp-codec-sbc.c @@ -374,7 +374,7 @@ static int codec_encode(void *data, int res; res = sbc_encode(&this->sbc, src, src_size, - dst, dst_size, dst_out); + dst, dst_size, (ssize_t*)dst_out); if (res >= this->codesize) this->payload->frame_count += res / this->codesize; diff --git a/spa/plugins/bluez5/a2dp-sink.c b/spa/plugins/bluez5/a2dp-sink.c index d9f775c37..2b3e1b1d7 100644 --- a/spa/plugins/bluez5/a2dp-sink.c +++ b/spa/plugins/bluez5/a2dp-sink.c @@ -357,7 +357,7 @@ static int send_buffer(struct impl *this) static int encode_buffer(struct impl *this, const void *data, int size) { int processed; - ssize_t out_encoded; + size_t out_encoded; struct port *port = &this->port; const void *from_data = data; int from_size = size;