diff options
author | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-01-27 03:07:13 +0000 |
---|---|---|
committer | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-01-27 03:07:13 +0000 |
commit | 49880f795cd6619b591d5f5518624a1f673c22c3 (patch) | |
tree | 972cf8dccdf470039f3941551535aa54ff6dd481 /libmpdemux/stream_dvd.c | |
parent | 632536597678901e6e86da7e3620475e30e59e68 (diff) | |
download | mpv-49880f795cd6619b591d5f5518624a1f673c22c3.tar.bz2 mpv-49880f795cd6619b591d5f5518624a1f673c22c3.tar.xz |
MPlayer OSX port: Add a call to UDFFindFile to verify that we are opening a valid udf image. Patch by Emanuele Giaquita <emanuele.giaquinta@gmail.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17491 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/stream_dvd.c')
-rw-r--r-- | libmpdemux/stream_dvd.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; + } } } |