# HG changeset patch # User reimar # Date 1280666918 0 # Node ID 7d7c7d772b520a4070c8352e66d4136c1d99a9be # Parent 53145096892e103725ad10f4a484ec5eb1a7ae4d Fix DVD playback with region-free drives. diff -r 53145096892e -r 7d7c7d772b52 libdvdcss/css.c --- a/libdvdcss/css.c Sat Jul 31 22:15:49 2010 +0000 +++ b/libdvdcss/css.c Sun Aug 01 12:48:38 2010 +0000 @@ -94,7 +94,6 @@ * 1: DVD is scrambled but can be read * 0: DVD is not scrambled and can be read * -1: could not get "copyright" information - * -2: could not get RPC information (reading the disc might be possible) * -3: drive is RPC-II, region is not set, and DVD is scrambled: the RPC * scheme will prevent us from reading the scrambled data *****************************************************************************/ @@ -139,7 +138,9 @@ if( i_ret < 0 ) { print_error( dvdcss, "css error: could not get RPC status" ); - return -2; + // do not return an error, the drive might be a region-free one + // and we definitely should not just fail for that case. + return i_copyright ? 1 : 0; } switch( i_rpc )