Commit a3216430 authored by Erik Hovland's avatar Erik Hovland

Check ifoRead_VTS before continuing

parent 69d536a0
......@@ -475,8 +475,7 @@ ifo_handle_t *ifoOpenVTSI(dvd_reader_t *dvd, int title) {
return NULL;
}
ifoRead_VTS(ifofile);
if(ifofile->vtsi_mat)
if(ifoRead_VTS(ifofile) && ifofile->vtsi_mat)
return ifofile;
fprintf(stderr, "libdvdread: Invalid IFO for title %d (VTS_%02d_0.IFO).\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment