libdvdread: replace perror by fprintf so that it gets picked up in xbmc logs
authorVoyager1 <voyager@xbmc.org>
Thu, 21 Feb 2013 19:07:03 +0000 (20:07 +0100)
committerVoyager1 <voyager@xbmc.org>
Thu, 21 Feb 2013 19:07:03 +0000 (20:07 +0100)
lib/libdvd/libdvdread/src/dvd_reader.c

index 2b3562f..38a3812 100644 (file)
@@ -446,7 +446,7 @@ dvd_reader_t *DVDOpen( const char *ppath )
         cdir = -1;
         if( retval == -1 ) {
 #if defined(_XBMC)
-          perror("libdvdread: failed to reset working directory to \".\""); /* but ignore error */
+          fprintf( stderr, "libdvdread: failed to reset working directory to \".\": %s\n", strerror(errno)); /* but ignore error */
 #else
           goto DVDOpen_error;
 #endif // _XBMC