diff --git a/spa/plugins/bluez5/a2dp-codecs.c b/spa/plugins/bluez5/a2dp-codecs.c index 6135ab056..8c9663e5a 100644 --- a/spa/plugins/bluez5/a2dp-codecs.c +++ b/spa/plugins/bluez5/a2dp-codecs.c @@ -66,20 +66,20 @@ extern struct a2dp_codec a2dp_codec_aptx_hd; #endif const struct a2dp_codec *a2dp_codec_list[] = { - &a2dp_codec_sbc, #if ENABLE_LDAC &a2dp_codec_ldac, #endif +#if ENABLE_APTX + &a2dp_codec_aptx, + &a2dp_codec_aptx_hd, +#endif #if ENABLE_AAC &a2dp_codec_aac, #endif #if ENABLE_MP3 &a2dp_codec_mpeg, #endif -#if ENABLE_APTX - &a2dp_codec_aptx, - &a2dp_codec_aptx_hd, -#endif + &a2dp_codec_sbc, NULL, }; const struct a2dp_codec **a2dp_codecs = a2dp_codec_list;