Reimar Döffinger
2010-09-25 14:46:49 UTC
Hello,
attached patch makes dvdcss_test more agressive by making it only
set b_scrambled to 0 if it is _absolutely_ certain the disc is
not encrypted (the per-title checks will detect unscrambled titles
just fine anyway), never unsetting b_ioctls (which I tested on a disc image
with b_ioctls always forced to 1, it still works just fine).
I also removed the return value, since it tried to indicate orthogonal
things (like RPC state and scrambling) which is just confusing and
not really behaving right (e.g. printing a misleading debug message
for the -2 return value that would only duplicate debug info from
dvdcss_test anyway).
This fixes the behaviour with some region-free and possibly some hacked drives
where the RPC status ioctl would not work, causing ioctls to be
not used at all.
I guess it might be possible to do this a bit nicer,
but it is at least better than the current state IMO.
attached patch makes dvdcss_test more agressive by making it only
set b_scrambled to 0 if it is _absolutely_ certain the disc is
not encrypted (the per-title checks will detect unscrambled titles
just fine anyway), never unsetting b_ioctls (which I tested on a disc image
with b_ioctls always forced to 1, it still works just fine).
I also removed the return value, since it tried to indicate orthogonal
things (like RPC state and scrambling) which is just confusing and
not really behaving right (e.g. printing a misleading debug message
for the -2 return value that would only duplicate debug info from
dvdcss_test anyway).
This fixes the behaviour with some region-free and possibly some hacked drives
where the RPC status ioctl would not work, causing ioctls to be
not used at all.
I guess it might be possible to do this a bit nicer,
but it is at least better than the current state IMO.