Index: stream/stream_dvd.c =================================================================== --- stream/stream_dvd.c (revision 21745) +++ stream/stream_dvd.c (working copy) @@ -802,18 +802,19 @@ 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,0,DVD_READ_INFO_FILE); + if(!dvdfile) { mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenDVD,temp_device); DVDClose(dvd); - } else + continue; + } else { + DVDCloseFile(dvdfile); + } #endif - { - free(temp_device); break; - } } } + free(temp_device); if(!dvd) { m_struct_free(&stream_opts,opts);