Fix chapter handling with first chapter not at beginning of file
commit05ae9dbd0dcc4fcce02a97011a46d89dab860021
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 24 Apr 2010 17:46:54 +0000 (24 20:46 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sun, 25 Apr 2010 19:48:10 +0000 (25 22:48 +0300)
treef839629bcb07817af7b52f96fcd5d592b3b34c81
parentdd1760e697f38a13f05d2d8563598a2e6ed0a84f
Fix chapter handling with first chapter not at beginning of file

Before "-chapter 1" did nothing even if the first chapter didn't start
at the beginning of file. Fix it.
Before all chapter property commands (including chapter seek keys)
failed if the current playback position was before the start of the
first chapter. Now they'll work. Relative chapter seeks will go to the
first chapter (even if that's in the wrong direction for backward
seeks).
command.c
libmpdemux/demuxer.c
mplayer.c