summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-23 23:13:11 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-23 23:13:11 +0000
commit70904c9204910c09ef5c736a9b8550383f635238 (patch)
tree66e67908e15cdc256784fcbe34875561313df476
parent2240156c3480d3425825599982207b6afea7e7e9 (diff)
downloadmpv-70904c9204910c09ef5c736a9b8550383f635238.tar.bz2
mpv-70904c9204910c09ef5c736a9b8550383f635238.tar.xz
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
-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);