summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-08-04 23:14:44 +0300
committerUoti Urpala <uau@mplayer2.org>2011-08-04 23:19:11 +0300
commit35ef4d02d01a537357b35c3c3e5d729846777c5e (patch)
tree07f5255cc22b10203b4b420773e5f6cf3ac7b836 /input
parent0ece360eeaf95f2c33df2c0177cb98ffd5fc0338 (diff)
downloadmpv-35ef4d02d01a537357b35c3c3e5d729846777c5e.tar.bz2
mpv-35ef4d02d01a537357b35c3c3e5d729846777c5e.tar.xz
core: fix detection of files with no chapters
Initialize mpctx->last_chapter_seek to -2 instead of -1. This changes get_current_chapter() return value to -2 for files which have no chapters. -2 is used by some commands related to chapters to recognize files without chapters and return failure without any effect in that case.
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions