diff libdvdcss/libdvdcss.c @ 31253:b470391059f3

Sync libdvdcss with their latest SVN. In particular fixes a wring return value check which caused descrambling to be aborted for no good reason.
author reimar
date Sat, 05 Jun 2010 06:41:43 +0000
parents 45159a4b8815
children 383f17e1ef2f
line wrap: on
line diff
--- a/libdvdcss/libdvdcss.c	Sat Jun 05 06:28:58 2010 +0000
+++ b/libdvdcss/libdvdcss.c	Sat Jun 05 06:41:43 2010 +0000
@@ -367,12 +367,12 @@
     if( dvdcss->b_ioctls )
     {
         i_ret = _dvdcss_test( dvdcss );
-        if( i_ret == -2 )
+
+        if( i_ret == -3 )
         {
-            /* Scrambled disk, RPC-II drive, no region set: bail out */
-            free( dvdcss->psz_device );
-            free( dvdcss );
-            return NULL;
+            print_debug( dvdcss, "scrambled disc on a region-free RPC-II "
+                                 "drive: possible failure, but continuing "
+                                 "anyway" );
         }
         else if( i_ret < 0 )
         {