shithub: libdvdcss

Download patch

ref: f0e89dcf84cfae8cd6029b42d64a7f347fb02636
parent: 1c7a44d2526fffcab4aef1376284bf80b53fb652
author: Sam Hocevar <sam@videolan.org>
date: Mon Jul 11 08:10:43 EDT 2005

* src/css.c: reworked my verbosity patch to fix a compilation issue.


--- a/src/css.c
+++ b/src/css.c
@@ -434,7 +434,9 @@
             }
             else
             {
-                DecryptTitleKey( dvdcss->css.p_disc_key, p_key );
+                PrintKey( dvdcss, "initial disc key ", dvdcss->css.p_disc_key );
+                DecryptTitleKey( dvdcss, dvdcss->css.p_disc_key, p_key );
+                PrintKey( dvdcss, "decrypted title key ", p_key );
                 i_ret = 1;
             }
 
@@ -1064,9 +1066,7 @@
  *****************************************************************************/
 static void DecryptTitleKey( dvd_key_t p_disc_key, dvd_key_t p_titlekey )
 {
-    PrintKey( dvdcss, "original disc key ", p_disc_key );
     DecryptKey( 0xff, p_disc_key, p_titlekey, p_titlekey );
-    PrintKey( dvdcss, "decrypted title key ", p_titlekey );
 }
 
 /*****************************************************************************