aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libdvd/libdvdread/src/dvd_reader.c4
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;