mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
ext/hls/meson.build: fix dependency logic
Currently, if one was to set -Dhls-crypto to either libgcrypt or openssl instead of auto, the following lines would fail because hls_crypto_dep is not yet set: if not hls_crypto_dep.found() and ['auto', 'libgcrypt'].contains(hls_crypto) if not hls_crypto_dep.found() and ['auto', 'openssl'].contains(hls_crypto) Instead, change "if not hls_crypto_dep.found()" to "if not have_hls_crypto" which fixes the error.
This commit is contained in:
parent
1b774e2da8
commit
43eaf5ac4a
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ if not hls_option.disabled()
|
|||
endif
|
||||
endif
|
||||
|
||||
if not hls_crypto_dep.found() and ['auto', 'libgcrypt'].contains(hls_crypto)
|
||||
if not have_hls_crypto and ['auto', 'libgcrypt'].contains(hls_crypto)
|
||||
hls_crypto_dep = cc.find_library('gcrypt', required : false)
|
||||
if hls_crypto_dep.found()
|
||||
have_hls_crypto = true
|
||||
|
@ -31,7 +31,7 @@ if not hls_option.disabled()
|
|||
endif
|
||||
endif
|
||||
|
||||
if not hls_crypto_dep.found() and ['auto', 'openssl'].contains(hls_crypto)
|
||||
if not have_hls_crypto and ['auto', 'openssl'].contains(hls_crypto)
|
||||
hls_crypto_dep = dependency('openssl', required : false)
|
||||
if hls_crypto_dep.found()
|
||||
have_hls_crypto = true
|
||||
|
|
Loading…
Reference in a new issue