From 92af2c90f9f9748f84d6ebea041b141b74f87b27 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sat, 23 Jan 2021 20:47:29 +0100 Subject: [PATCH] bluetooth/aptx: Call the non-HD encode_buffer function For consistency with its decode_buffer counterpart. For the time being the base function only performs an extra check and logs an error when no data has been written into the GStreamer encoding pipeline. Part-of: --- src/modules/bluetooth/a2dp-codec-aptx-gst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/a2dp-codec-aptx-gst.c b/src/modules/bluetooth/a2dp-codec-aptx-gst.c index 8b5129b..7eba05a 100644 --- a/src/modules/bluetooth/a2dp-codec-aptx-gst.c +++ b/src/modules/bluetooth/a2dp-codec-aptx-gst.c @@ -500,7 +500,7 @@ static size_t encode_buffer_hd(void *codec_info, uint32_t timestamp, const uint8 return 0; } - written = gst_encode_buffer(codec_info, timestamp, input_buffer, input_size, output_buffer + sizeof(*header), output_size - sizeof(*header), processed); + written = encode_buffer(codec_info, timestamp, input_buffer, input_size, output_buffer + sizeof(*header), output_size - sizeof(*header), processed); if (PA_LIKELY(written > 0)) { header = (struct rtp_header *) output_buffer; -- 2.7.4