summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 0c4c8b74a0..58b32bcadf 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -802,18 +802,18 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,temp_device);
} else {
#if DVDREAD_VERSION <= LIBDVDREAD_VERSION(0,9,4)
- int len;
- if(!UDFFindFile(dvd,"/",&len)) {
+ dvd_file_t *dvdfile = DVDOpenFile(dvd,dvd_title,DVD_READ_INFO_FILE);
+ if(!dvdfile) {
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,temp_device);
DVDClose(dvd);
- } else
+ continue;
+ }
+ DVDCloseFile(dvdfile);
#endif
- {
- free(temp_device);
break;
- }
}
}
+ free(temp_device);
if(!dvd) {
m_struct_free(&stream_opts,opts);