changeset 65:fb0ccb03eb7d src

Report which index failed reading When reading the parental management information, report what index if that read failed. This should improve error reporting. Patch submitted by Frederic Marchal, fmarchal at perso dot be.
author erik
date Sun, 30 Jan 2011 23:44:16 +0000
parents 70c34d162e6e
children d16d554fa215
files ifo_read.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ifo_read.c	Sun Jan 30 23:44:13 2011 +0000
+++ b/ifo_read.c	Sun Jan 30 23:44:16 2011 +0000
@@ -1357,7 +1357,7 @@
     if(!DVDFileSeek_(ifofile->file,
                      ifofile->vmgi_mat->ptl_mait * DVD_BLOCK_LEN
                      + ptl_mait->countries[i].pf_ptl_mai_start_byte)) {
-      fprintf(stderr, "libdvdread: Unable to seek PTL_MAIT table.\n");
+      fprintf(stderr, "libdvdread: Unable to seek PTL_MAIT table at index %d.\n",i);
       free(ptl_mait->countries);
       free(ptl_mait);
       ifofile->ptl_mait = NULL;
@@ -1371,7 +1371,7 @@
       return 0;
     }
     if(!(DVDReadBytes(ifofile->file, pf_temp, info_length))) {
-      fprintf(stderr, "libdvdread: Unable to read PTL_MAIT table.\n");
+      fprintf(stderr, "libdvdread: Unable to read PTL_MAIT table at index %d.\n",i);
       free(pf_temp);
       free_ptl_mait(ptl_mait, i);
       ifofile->ptl_mait = NULL;