hls: Check nettle version to ensure AES128 support
authorSeungha Yang <seungha.yang@navercorp.com>
Fri, 10 Jan 2020 07:03:48 +0000 (16:03 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Fri, 10 Jan 2020 07:03:48 +0000 (16:03 +0900)
AES128 support was added since nettle version 3.0

../subprojects/gst-plugins-bad/ext/hls/gsthlsdemux.h:110:10: error: field ‘ctx’ has incomplete type
   struct CBC_CTX (struct aes128_ctx, AES_BLOCK_SIZE) aes_ctx;

ext/hls/meson.build

index 8c1f982..3ef45ee 100644 (file)
@@ -21,7 +21,7 @@ if hls_option.disabled()
 endif
 
 if ['auto', 'nettle'].contains(hls_crypto)
-  hls_crypto_dep = dependency('nettle', required : false)
+  hls_crypto_dep = dependency('nettle', version : '>= 3.0', required : false)
   if hls_crypto_dep.found()
     hls_cargs += ['-DHAVE_NETTLE']
   endif