Skip to content
Snippets Groups Projects
Commit 978c6275 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

Invalidate cache when forcing filesize

This fixes playback of Resident Evil Extention DVD.
parent 30e4a6e2
No related branches found
No related tags found
1 merge request!2Invalidate cache when forcing filesize
Pipeline #3865 passed with stage
in 2 minutes and 38 seconds
......@@ -1332,6 +1332,8 @@ int DVDFileSeekForce(dvd_file_t *dvd_file, int offset, int force_size)
force_size = (offset - 1) / DVD_VIDEO_LB_LEN + 1;
if( dvd_file->filesize < force_size ) {
dvd_file->filesize = force_size;
free(dvd_file->cache);
dvd_file->cache = NULL;
fprintf(stderr, "libdvdread: Ignored size of file indicated in UDF.\n");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment