bluez5: Use LDAC_ABR_HANDLE_NULL on ldacBT >= 2.1.0.0

This commit is contained in:
Elias Souza 2026-06-07 16:45:29 -03:00
parent b844678a1d
commit fdbc846120
2 changed files with 6 additions and 3 deletions

View file

@ -471,7 +471,7 @@ static void *codec_init(const struct media_codec *codec, uint32_t flags,
#endif
#ifdef ENABLE_LDAC_ABR
#ifdef ENABLE_LDAC_DEC
#ifdef LDAC_ABR_HANDLE_NULL
this->ldac_abr = ldac_ABR_get_handle(NULL);
#else
this->ldac_abr = ldac_ABR_get_handle();

View file

@ -138,6 +138,9 @@ if ldac_dep.found()
ldac_args = codec_args
if ldac_abr_dep.found()
ldac_args += [ '-DENABLE_LDAC_ABR' ]
if ldac_abr_dep.version().version_compare('>=2.1.0.0')
ldac_args += [ '-DLDAC_ABR_HANDLE_NULL' ]
endif
endif
if get_option('bluez5-codec-ldac-dec').allowed() and ldac_dec_dep.found()
ldac_args += [ '-DENABLE_LDAC_DEC' ]