core: track current chapter for relative chapter seeks
commitd2e25a90c40c47b97becaa6eaefa16e61f7f0cdf
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 25 Apr 2010 20:20:34 +0000 (25 23:20 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 25 Apr 2010 20:29:46 +0000 (25 23:29 +0300)
tree162222a56f82b8d264744725e81f4adf898778c0
parent823b989f0f6e981b1ee61543573c391ca475dd18
core: track current chapter for relative chapter seeks

Due to inexact seeks, chapter seek commands may result in a playback
position that's inside the previous chapter. This causes problems when
the user does repeated next-chapter/previous-chapter seeks, because
the code will use the wrong base for calculating 'next' or
'previous'. Improve the behavior by adding a heuristic that keeps
track of what chapter the user last wanted to seek to and adjusts the
"current chapter" value based on that.
mp_core.h
mplayer.c