[vlc-commits] demux: adaptive: really fix build without libgcrypt

Francois Cartegnie git at videolan.org
Mon May 20 11:51:16 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 20 11:48:54 2019 +0200| [9bf44b32959c2cf263e250da343e7ee866651ee4] | committer: Francois Cartegnie

demux: adaptive: really fix build without libgcrypt

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9bf44b32959c2cf263e250da343e7ee866651ee4
---

 modules/demux/adaptive/encryption/CommonEncryption.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/demux/adaptive/encryption/CommonEncryption.cpp b/modules/demux/adaptive/encryption/CommonEncryption.cpp
index 4b4d486bd2..e9b81581fe 100644
--- a/modules/demux/adaptive/encryption/CommonEncryption.cpp
+++ b/modules/demux/adaptive/encryption/CommonEncryption.cpp
@@ -108,9 +108,8 @@ void CommonEncryptionSession::close()
 size_t CommonEncryptionSession::decrypt(void *inputdata, size_t inputbytes, bool last)
 {
 #ifndef HAVE_GCRYPT
-    (void)data;
-    (void)bytes;
-    (void)last;
+    VLC_UNUSED(inputdata);
+    VLC_UNUSED(last);
 #else
     gcry_cipher_hd_t handle = reinterpret_cast<gcry_cipher_hd_t>(ctx);
     if(encryption.method == CommonEncryption::Method::AES_128 && ctx)



More information about the vlc-commits mailing list