[vlc-commits] adaptive: CommonEncryption: fix unused variable warning without GnuTLS
Alexandre Janniaux
git at videolan.org
Tue Aug 18 15:09:26 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Mon Jul 27 11:40:08 2020 +0200| [7f7c5e82d0fd948696bcc16580e6b1e5d668f2cd] | committer: Alexandre Janniaux
adaptive: CommonEncryption: fix unused variable warning without GnuTLS
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f7c5e82d0fd948696bcc16580e6b1e5d668f2cd
---
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())
More information about the vlc-commits
mailing list