mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-13 14:33:03 -04:00
bluez5: Use LDAC_ABR_HANDLE_NULL on ldacBT >= 2.1.0.0
This commit is contained in:
parent
b844678a1d
commit
fdbc846120
2 changed files with 6 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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' ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue