From 2f46ee2793c0d53b44b5004e6beccc6d4291ebfd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 22 Jan 2024 15:39:17 +0100 Subject: [PATCH] bluez: fix compilation some more --- spa/plugins/bluez5/a2dp-codec-aac.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spa/plugins/bluez5/a2dp-codec-aac.c b/spa/plugins/bluez5/a2dp-codec-aac.c index 7802aa965..30e5ae9b6 100644 --- a/spa/plugins/bluez5/a2dp-codec-aac.c +++ b/spa/plugins/bluez5/a2dp-codec-aac.c @@ -69,14 +69,13 @@ done: static int codec_fill_caps(const struct media_codec *codec, uint32_t flags, uint8_t caps[A2DP_MAX_CAPS_SIZE]) { - bool have_eld = eld_supported(); - static const a2dp_aac_t a2dp_aac = { + const a2dp_aac_t a2dp_aac = { .object_type = /* NOTE: AAC Long Term Prediction and AAC Scalable are * not supported by the FDK-AAC library. */ AAC_OBJECT_TYPE_MPEG2_AAC_LC | AAC_OBJECT_TYPE_MPEG4_AAC_LC | - have_eld ? AAC_OBJECT_TYPE_MPEG4_AAC_ELD : 0, + (eld_supported() ? AAC_OBJECT_TYPE_MPEG4_AAC_ELD : 0), AAC_INIT_FREQUENCY( AAC_SAMPLING_FREQ_8000 | AAC_SAMPLING_FREQ_11025 |