diff --git a/libmpdemux/stream_dvd.c b/libmpdemux/stream_dvd.c index 21fa46d8af..30424f82a7 100644 --- a/libmpdemux/stream_dvd.c +++ b/libmpdemux/stream_dvd.c @@ -465,8 +465,17 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) { if(!dvd) { 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)) { + mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,temp_device); + DVDClose(dvd); + } else +#endif + { free(temp_device); break; + } } }