[libdvdread] Fix Playback of VIDEO_TS folders broken on SMB and NFS - thx @kraqh3d
authorVoyager1 <voyager@xbmc.org>
Fri, 10 May 2013 14:29:11 +0000 (16:29 +0200)
committerVoyager1 <voyager@xbmc.org>
Fri, 10 May 2013 18:36:18 +0000 (20:36 +0200)
lib/libdvd/libdvdread/src/dvd_reader.c

index d7ff12e..f5ee550 100644 (file)
@@ -429,6 +429,9 @@ 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 ) {