[DVDnav-discuss] r1212 - trunk/libdvdread/src/dvd_reader.c

erik subversion at mplayerhq.hu
Sat Jul 31 02:10:29 CEST 2010


Author: erik
Date: Sat Jul 31 02:10:28 2010
New Revision: 1212

Log:
Fix the test of whether disk names should be raw devices

This is a side port of a fix from the original libdvdread 0.9.7 release.
Darwin and BSD platforms disk device names might have to be converted
to raw device names. There is a check for this in the code. But it is
missing a very important 'r'. This fix made it into the 0.9.7 release
but did not make the commit to this repo when this repo was given the
API changes for 0.9.7 because it was not clear whether the fix was
still relevant. Thanks to John Stebbins we now have this confirmation
and we can go ahead and commit this fix.

Modified:
   trunk/libdvdread/src/dvd_reader.c

Modified: trunk/libdvdread/src/dvd_reader.c
==============================================================================
--- trunk/libdvdread/src/dvd_reader.c	Sat Jul 31 01:34:24 2010	(r1211)
+++ trunk/libdvdread/src/dvd_reader.c	Sat Jul 31 02:10:28 2010	(r1212)
@@ -319,7 +319,7 @@ static char *bsd_block2char( const char 
   char *new_path;
 
   /* If it doesn't start with "/dev/" or does start with "/dev/r" exit */
-  if( !strncmp( path, "/dev/",  5 ) || strncmp( path, "/dev/r", 6 ) )
+  if( strncmp( path, "/dev/",  5 ) || !strncmp( path, "/dev/r", 6 ) )
     return (char *) strdup( path );
 
   /* Replace "/dev/" with "/dev/r" */


More information about the DVDnav-discuss mailing list