[vlc-devel] [PATCH] adaptive: CommonEncryption: fix unused variable warning without GnuTLS
Alexandre Janniaux
ajanni at videolabs.io
Mon Jul 27 11:40:08 CEST 2020
---
modules/demux/adaptive/encryption/CommonEncryption.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/encryption/CommonEncryption.cpp b/modules/demux/adaptive/encryption/CommonEncryption.cpp
index adcac4a34d..df642df92b 100644
--- a/modules/demux/adaptive/encryption/CommonEncryption.cpp
+++ b/modules/demux/adaptive/encryption/CommonEncryption.cpp
@@ -68,7 +68,10 @@ bool CommonEncryptionSession::start(SharedResources *res, const CommonEncryption
if(ctx)
close();
encryption = enc;
-#ifdef HAVE_GCRYPT
+#ifndef HAVE_GCRYPT
+ /* We don't use the SharedResources */
+ VLC_UNUSED(res);
+#else
if(encryption.method == CommonEncryption::Method::AES_128)
{
if(key.empty())
--
2.27.0
More information about the vlc-devel
mailing list