changeset 21731:61c0bae18c23

replace call to UDFFindFile() (that is not part of the public API) with DVDOpenFile() patch by Klaus Muller (mk.2001 web de)
author nicodvb
date Sat, 23 Dec 2006 23:13:11 +0000
parents f095f11b5be4
children 893e314fff49
files stream/stream_dvd.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvd.c	Sat Dec 23 22:35:46 2006 +0000
+++ b/stream/stream_dvd.c	Sat Dec 23 23:13:11 2006 +0000
@@ -802,18 +802,18 @@
           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);