|author||wm4 <wm4@nowhere>||2014-11-14 23:52:47 +0100|
|committer||wm4 <wm4@nowhere>||2014-11-15 00:55:30 +0100|
demux_mkv: adjust subtitle preroll again (2)
Make the changes started in commit c827ae5f more eloborate, and provide an option to control the amount of data read before the seek-target. To achieve this, rewrite the loop that finds the lowest still acceptable target cluster. It is now searched by time instead of file position. The behavior (both with and without preroll option) may be different from before this change, although it shouldn't be worse. The change demux_mkv_read_cues() fixes a bug: when seeking after playing normally, the code would erroneously assume that durations are set. This doesn't happen if the first operation after loading was a seek instead of playback.
Diffstat (limited to 'player/sub.c')
0 files changed, 0 insertions, 0 deletions