Mercurial > mplayer.hg
changeset 17490:acef9166db2f
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>
author | nplourde |
---|---|
date | Fri, 27 Jan 2006 03:07:13 +0000 |
parents | 399f91dd4fbe |
children | 1de8f7a7ad32 |
files | libmpdemux/stream_dvd.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/stream_dvd.c Fri Jan 27 00:18:52 2006 +0000 +++ b/libmpdemux/stream_dvd.c Fri Jan 27 03:07:13 2006 +0000 @@ -465,8 +465,17 @@ 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; + } } }