• Steve Dibb's avatar
    Fix DVDDiscID from reading non-existent IFO files · c820067e
    Steve Dibb authored
    In dvd_reader.c, the DVDDiscID function gets the MD5 from the total contents
    of the IFO files on the disc.  However, it gets it by looping through the
    the first ten IFO files, whether they exist or not.
    
    This results in spewage, where a disc has less than ten.  In this case,
    Dragonheart only has two:
    
    libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_03_0.IFO failed
    libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_04_0.IFO failed
    libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_05_0.IFO failed
    libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_06_0.IFO failed
    libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_07_0.IFO failed
    libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_08_0.IFO failed
    libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_09_0.IFO failed
    
    Instead of using a set limit of 10 IFOs, this patch counts the number of
    VTSes existing on the DVD, and will use that number instead if it is less
    than 10.
    Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
    c820067e
Name
Last commit
Last update
doc Loading commit data...
m4 Loading commit data...
misc Loading commit data...
msvc Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
TODO Loading commit data...
configure.ac Loading commit data...