• hartman's avatar
    * Fix the duration of the dvdread module. refs #198. · b7d2846e
    hartman authored
      Now duration is accurate, but current time is still block based, so on VBR discs the duration of a second may have some weird variations. Getting accurate time is possible (see what was reverted in [12862]), but this will break the relative SET_TIME (might actually go seeking in the wrong direction for instance). The correct fix here is to expand dvdread with a method that checks the TMAPTI IFO table of a Title, to find what block approximately goes with a certain time. (the TMAPTI table is usually in .5 secs interpolation might possibly be required as well) As a backup an estimate can be made using the ADMAP table.
    The behaviour of the dvdread module is now equal to that of the dvdnav module when it comes to time and seeking.
dvdread.c 41.2 KB