aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVoyager1 <voyager@xbmc.org>2013-05-12 18:17:49 +0200
committerVoyager1 <voyager@xbmc.org>2013-05-15 19:58:12 +0200
commitc5ed0c53e195021a1940c65e065252f15ae10539 (patch)
treeb3f69ddd71604a3e87024878251308cb060ebef0 /lib
parent27044a4178f191f2a3f0e470fca43878f0bf15b4 (diff)
[libdvdread] Revert previous fixups
Diffstat (limited to 'lib')
-rw-r--r--lib/libdvd/libdvdread/src/dvd_reader.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/libdvd/libdvdread/src/dvd_reader.c b/lib/libdvd/libdvdread/src/dvd_reader.c
index f5ee550404..d9544b3264 100644
--- a/lib/libdvd/libdvdread/src/dvd_reader.c
+++ b/lib/libdvd/libdvdread/src/dvd_reader.c
@@ -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;