[libdvdcss-devel] libdvdcss 1.2.11 regression

David Woodhouse dwmw2 at infradead.org
Sat Feb 18 17:10:16 CET 2012


As described by Dan Haim in
http://mailman.videolan.org/pipermail/libdvdcss-devel/2012-January/000613.html
libdvdcss 1.2.11 is failing on certain drives where 1.2.10 used to work correctly.

This patch seems to fix it; is there a reason not to apply it?

I'd like to get this fixed in the Fedora package but the packager is
understandably reticent about doing so without upstream approval of the
patch.

diff --git a/src/css.c b/src/css.c
index 4d86016..5cc4b34 100644
--- a/src/css.c
+++ b/src/css.c
@@ -138,8 +138,10 @@ int _dvdcss_test( dvdcss_t dvdcss )
 
     if( i_ret < 0 )
     {
-        print_error( dvdcss, "css error: could not get RPC status" );
-        return -2;
+        print_debug( dvdcss, "css error: could not get RPC status; assuming RPC-1 drive" );
+        i_rpc = 0;
+        i_type = 0;
+        i_mask = 0;
     }
 
     switch( i_rpc )

-- 
dwmw2



More information about the libdvdcss-devel mailing list