diff options
author | Voyager1 <voyager@xbmc.org> | 2013-02-20 19:47:34 +0100 |
---|---|---|
committer | Voyager1 <voyager@xbmc.org> | 2013-02-20 19:50:49 +0100 |
commit | 3708d886958258fcf18fe827eb8ab32ecda45943 (patch) | |
tree | 654e7b11c6afa87fd517cdfafce0f833ca29e12e /lib/libdvd | |
parent | 5ee6a7ab27e7bfdaae29b9da3f2d32fa1d2c6895 (diff) |
Fix inability of libdvd 4.2.0 to read DVDs stored as VIDEO_TS files on non-Windows OSs.
Fixes http://trac.xbmc.org/ticket/14115.
Diffstat (limited to 'lib/libdvd')
-rw-r--r-- | lib/libdvd/libdvdread/src/dvd_reader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libdvd/libdvdread/src/dvd_reader.c b/lib/libdvd/libdvdread/src/dvd_reader.c index d9544b3264..2b3562f326 100644 --- a/lib/libdvd/libdvdread/src/dvd_reader.c +++ b/lib/libdvd/libdvdread/src/dvd_reader.c @@ -445,7 +445,11 @@ dvd_reader_t *DVDOpen( const char *ppath ) close( cdir ); cdir = -1; if( retval == -1 ) { +#if defined(_XBMC) + perror("libdvdread: failed to reset working directory to \".\""); /* but ignore error */ +#else goto DVDOpen_error; +#endif // _XBMC } path_copy = new_path; new_path = NULL; |