mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
2240156c34
commit
70904c9204
|
@ -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
|
||||
#endif
|
||||
{
|
||||
free(temp_device);
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
DVDCloseFile(dvdfile);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
free(temp_device);
|
||||
|
||||
if(!dvd) {
|
||||
m_struct_free(&stream_opts,opts);
|
||||
|
|
Loading…
Reference in New Issue