[MPlayer-cvslog] r21747 - trunk/stream/stream_dvd.c

nicodvb subversion at mplayerhq.hu
Sun Dec 24 00:13:11 CET 2006


Author: nicodvb
Date: Sun Dec 24 00:13:11 2006
New Revision: 21747

Modified:
   trunk/stream/stream_dvd.c

Log:
replace call to UDFFindFile() (that is not part of the public API) with DVDOpenFile()
patch by Klaus Muller (mk.2001 web de)



Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	(original)
+++ trunk/stream/stream_dvd.c	Sun Dec 24 00:13:11 2006
@@ -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);



More information about the MPlayer-cvslog mailing list