[DVDnav-discuss] r1020 - trunk/libdvdnav/src/dvdread/ifo_read.c

nicodvb subversion at mplayerhq.hu
Sun Apr 27 11:53:45 CEST 2008


Author: nicodvb
Date: Sun Apr 27 11:53:45 2008
New Revision: 1020

Log:
some debug message to identify the cause of 'Invalid main menu IFO'

Modified:
   trunk/libdvdnav/src/dvdread/ifo_read.c

Modified: trunk/libdvdnav/src/dvdread/ifo_read.c
==============================================================================
--- trunk/libdvdnav/src/dvdread/ifo_read.c	(original)
+++ trunk/libdvdnav/src/dvdread/ifo_read.c	Sun Apr 27 11:53:45 2008
@@ -121,7 +121,7 @@ ifo_handle_t *ifoOpen(dvd_reader_t *dvd,
 
     /* These are both mandatory. */
     if(!ifoRead_FP_PGC(ifofile) || !ifoRead_TT_SRPT(ifofile)) {
-      fprintf(stderr, "libdvdread: Invalid main menu IFO (VIDEO_TS.IFO).\n");
+      fprintf(stderr, "libdvdread: Invalid main menu IFO (VIDEO_TS.IFO), ifoRead_FP_PGC() failed.\n");
       ifoClose(ifofile);
       return NULL;
     }
@@ -131,7 +131,7 @@ ifo_handle_t *ifoOpen(dvd_reader_t *dvd,
 
     /* This is also mandatory. */
     if(!ifoRead_VTS_ATRT(ifofile)) {
-      fprintf(stderr, "libdvdread: Invalid main menu IFO (VIDEO_TS.IFO).\n");
+      fprintf(stderr, "libdvdread: Invalid main menu IFO (VIDEO_TS.IFO), ifoRead_VTS_ATRT() failed.\n");
       ifoClose(ifofile);
       return NULL;
     }
@@ -200,7 +200,7 @@ ifo_handle_t *ifoOpenVMGI(dvd_reader_t *
   if(ifoRead_VMG(ifofile))
     return ifofile;
 
-  fprintf(stderr, "libdvdread: Invalid main menu IFO (VIDEO_TS.IFO).\n");
+  fprintf(stderr, "libdvdread,ifoOpenVMGI(): Invalid main menu IFO (VIDEO_TS.IFO).\n");
   ifoClose(ifofile);
   return NULL;
 }



More information about the DVDnav-discuss mailing list