From 70904c9204910c09ef5c736a9b8550383f635238 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 23 Dec 2006 23:13:11 +0000 Subject: replace call to UDFFindFile() (that is not part of the public API) with DVDOpenFile() patch by Klaus Muller (mk.2001 web de) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21747 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'stream/stream_dvd.c') 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); -- cgit v1.2.3