[libdvdread] Revert previous fixups
authorVoyager1 <voyager@xbmc.org>
Sun, 12 May 2013 16:17:49 +0000 (18:17 +0200)
committerVoyager1 <voyager@xbmc.org>
Wed, 15 May 2013 17:58:12 +0000 (19:58 +0200)
lib/libdvd/libdvdread/src/dvd_reader.c

index f5ee550..d9544b3 100644 (file)
@@ -429,17 +429,10 @@ dvd_reader_t *DVDOpen( const char *ppath )
               /* Also WIN32 does not have symlinks, so we don't need this bit of code. */
 
     /* Resolve any symlinks and get the absolute dir name. */
-#if defined(_XBMC) /* for XBMC, only do symlink resolution for (real) non-xbmc-VFS paths */
-       if ( path[0] == '/' )
-#endif // _XBMC
        {
       if( ( cdir  = open( ".", O_RDONLY ) ) >= 0 ) {
         if( chdir( path_copy ) == -1 ) {
-#if defined(_XBMC)
-          fprintf( stderr, "libdvdread: failed to change working directory to \"%s\": %s\n", path_copy, strerror(errno)); /* but ignore error */
-#else
           goto DVDOpen_error;
-#endif // _XBMC
         }
                new_path = malloc(PATH_MAX+1);
                if(!new_path) {
@@ -452,11 +445,7 @@ dvd_reader_t *DVDOpen( const char *ppath )
                close( cdir );
         cdir = -1;
         if( retval == -1 ) {
-#if defined(_XBMC)
-          fprintf( stderr, "libdvdread: failed to reset working directory to \".\": %s\n", strerror(errno)); /* but ignore error */
-#else
           goto DVDOpen_error;
-#endif // _XBMC
         }
                    path_copy = new_path;
         new_path = NULL;