shithub: libdvdcss

Download patch

ref: c514694dbbf9c94732a26678c144863a77e8bd58
parent: 2b899f3b337a6687bd7c3f12a5b015f48ffbcbf3
author: Jean-Baptiste Kempf <jb@videolan.org>
date: Sat Feb 18 11:22:03 EST 2012

If unsure, assume the drive is of RPC-I type

This can happen when patched drives do not answer to ioctl_ReportRPC correctly


--- a/src/css.c
+++ b/src/css.c
@@ -138,8 +138,8 @@
 
     if( i_ret < 0 )
     {
-        print_error( dvdcss, "css error: could not get RPC status" );
-        return -2;
+        print_error( dvdcss, "css error: could not get RPC status. Assuming RPC-I drive." );
+        i_type = i_mask = i_rpc = 0;
     }
 
     switch( i_rpc )