Skip to content
This repository
Browse code

libdvdread: replace perror by fprintf so that it gets picked up in xb…

…mc logs
  • Loading branch information...
commit cffa18401f642b35a91de7e5b1e184f1dc0bef6d 1 parent 6eff7a8
Voyager1 authored February 21, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/libdvd/libdvdread/src/dvd_reader.c
2  lib/libdvd/libdvdread/src/dvd_reader.c
@@ -446,7 +446,7 @@ dvd_reader_t *DVDOpen( const char *ppath )
446 446
         cdir = -1;
447 447
         if( retval == -1 ) {
448 448
 #if defined(_XBMC)
449  
-          perror("libdvdread: failed to reset working directory to \".\""); /* but ignore error */
  449
+          fprintf( stderr, "libdvdread: failed to reset working directory to \".\": %s\n", strerror(errno)); /* but ignore error */
450 450
 #else
451 451
           goto DVDOpen_error;
452 452
 #endif // _XBMC

0 notes on commit cffa184

Please sign in to comment.
Something went wrong with that request. Please try again.