comparison dvd_reader.c @ 35:7b3c6a7220c3 src

spelling fixes by Erik Hovland
author nicodvb
date Sun, 15 Feb 2009 18:30:24 +0000
parents c743d79f187b
children 79c9b639bf9d
comparison
equal deleted inserted replaced
34:efda257ddab4 35:7b3c6a7220c3
247 dvd->udfcache_level = DEFAULT_UDF_CACHE_LEVEL; 247 dvd->udfcache_level = DEFAULT_UDF_CACHE_LEVEL;
248 dvd->udfcache = NULL; 248 dvd->udfcache = NULL;
249 249
250 if( have_css ) { 250 if( have_css ) {
251 /* Only if DVDCSS_METHOD = title, a bit if it's disc or if 251 /* Only if DVDCSS_METHOD = title, a bit if it's disc or if
252 * DVDCSS_METHOD = key but region missmatch. Unfortunaly we 252 * DVDCSS_METHOD = key but region mismatch. Unfortunately we
253 * don't have that information. */ 253 * don't have that information. */
254 254
255 dvd->css_state = 1; /* Need key init. */ 255 dvd->css_state = 1; /* Need key init. */
256 } 256 }
257 dvd->css_title = 0; 257 dvd->css_title = 0;
302 return new_path; 302 return new_path;
303 } 303 }
304 #endif 304 #endif
305 305
306 #if defined(SYS_BSD) 306 #if defined(SYS_BSD)
307 /* FreeBSD /dev/(r)(a)cd0c (a is for atapi), recomended to _not_ use r 307 /* FreeBSD /dev/(r)(a)cd0c (a is for atapi), recommended to _not_ use r
308 OpenBSD /dev/rcd0c, it needs to be the raw device 308 OpenBSD /dev/rcd0c, it needs to be the raw device
309 NetBSD /dev/rcd0[d|c|..] d for x86, c (for non x86), perhaps others 309 NetBSD /dev/rcd0[d|c|..] d for x86, c (for non x86), perhaps others
310 Darwin /dev/rdisk0, it needs to be the raw device 310 Darwin /dev/rdisk0, it needs to be the raw device
311 BSD/OS /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will do) */ 311 BSD/OS /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will do) */
312 static char *bsd_block2char( const char *path ) 312 static char *bsd_block2char( const char *path )
413 } 413 }
414 414
415 #ifndef WIN32 /* don't have fchdir, and getcwd( NULL, ... ) is strange */ 415 #ifndef WIN32 /* don't have fchdir, and getcwd( NULL, ... ) is strange */
416 /* Also WIN32 does not have symlinks, so we don't need this bit of code. */ 416 /* Also WIN32 does not have symlinks, so we don't need this bit of code. */
417 417
418 /* Resolve any symlinks and get the absolut dir name. */ 418 /* Resolve any symlinks and get the absolute dir name. */
419 { 419 {
420 char *new_path; 420 char *new_path;
421 int cdir = open( ".", O_RDONLY ); 421 int cdir = open( ".", O_RDONLY );
422 422
423 if( cdir >= 0 ) { 423 if( cdir >= 0 ) {
436 } 436 }
437 #endif 437 #endif
438 438
439 /** 439 /**
440 * If we're being asked to open a directory, check if that directory 440 * If we're being asked to open a directory, check if that directory
441 * is the mountpoint for a DVD-ROM which we can use instead. 441 * is the mount point for a DVD-ROM which we can use instead.
442 */ 442 */
443 443
444 if( strlen( path_copy ) > 1 ) { 444 if( strlen( path_copy ) > 1 ) {
445 if( path_copy[ strlen( path_copy ) - 1 ] == '/' ) { 445 if( path_copy[ strlen( path_copy ) - 1 ] == '/' ) {
446 path_copy[ strlen( path_copy ) - 1 ] = '\0'; 446 path_copy[ strlen( path_copy ) - 1 ] = '\0';