changeset 346:e14f453bb208 src

some debug message to identify the cause of 'Invalid main menu IFO'
author nicodvb
date Sun, 27 Apr 2008 09:53:45 +0000
parents f051b111ef50
children a5319a5c34f4
files dvdread/ifo_read.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/dvdread/ifo_read.c	Tue Apr 22 07:36:49 2008 +0000
+++ b/dvdread/ifo_read.c	Sun Apr 27 09:53:45 2008 +0000
@@ -121,7 +121,7 @@
 
     /* 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 @@
 
     /* 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 @@
   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;
 }