summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Ralph <tralph@mythtv.org>2011-11-07 03:20:14 (GMT)
committer Taylor Ralph <tralph@mythtv.org>2011-11-07 03:20:14 (GMT)
commit429990315a0c0ee4628f3440b6143275d910d8d5 (patch)
treeab99588c9a20d254f6e936d75182cd0b7979094a
parentb1ff37e61987f14c657b096e109cba9d63cf5ece (diff)
libdvdread: fix compilation for ifo_read.c
-rw-r--r--mythtv/libs/libmythdvdnav/dvdread/ifo_read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mythtv/libs/libmythdvdnav/dvdread/ifo_read.c b/mythtv/libs/libmythdvdnav/dvdread/ifo_read.c
index e3d0e00..df514cc 100644
--- a/mythtv/libs/libmythdvdnav/dvdread/ifo_read.c
+++ b/mythtv/libs/libmythdvdnav/dvdread/ifo_read.c
@@ -1193,7 +1193,10 @@ int ifoRead_VTS_PTT_SRPT(ifo_handle_t *ifofile) {
if(vts_ptt_srpt->nr_of_srpts > info_length / sizeof(*data)) {
fprintf(stderr, "libdvdread: PTT search table too small.\n");
- goto fail;
+ free(vts_ptt_srpt);
+ free(data);
+ ifofile->vts_ptt_srpt = 0;
+ return 0;
}
for(i = 0; i < vts_ptt_srpt->nr_of_srpts; i++) {
B2N_32(data[i]);