[libdvdread] Remove symlink checking as this is not needed by xbmc
authorVoyager1 <voyager@xbmc.org>
Sun, 12 May 2013 16:30:54 +0000 (18:30 +0200)
committerVoyager1 <voyager@xbmc.org>
Wed, 15 May 2013 17:59:52 +0000 (19:59 +0200)
lib/libdvd/libdvdread/src/dvd_reader.c

index d9544b3..57dd2d0 100644 (file)
@@ -425,8 +425,9 @@ dvd_reader_t *DVDOpen( const char *ppath )
     if( !(path_copy = strdup( path ) ) )
       goto DVDOpen_error;
 
-#ifndef WIN32 /* don't have fchdir, and getcwd( NULL, ... ) is strange */
+#if !defined(WIN32) && !defined(_XBMC) /* don't have fchdir, and getcwd( NULL, ... ) is strange */
               /* Also WIN32 does not have symlinks, so we don't need this bit of code. */
+                         /* XBMC also doesn't need symlink resolution */
 
     /* Resolve any symlinks and get the absolute dir name. */
        {