# HG changeset patch # User erik # Date 1296431056 0 # Node ID fb0ccb03eb7dfe3613406f3a8132a1c013c69f88 # Parent 70c34d162e6ee6a37544b7c0e728eca11278222b 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. diff -r 70c34d162e6e -r fb0ccb03eb7d ifo_read.c --- 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;