diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-08-04 23:14:44 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-08-04 23:19:11 +0300 |
commit | 35ef4d02d01a537357b35c3c3e5d729846777c5e (patch) | |
tree | 07f5255cc22b10203b4b420773e5f6cf3ac7b836 /input/input.c | |
parent | 0ece360eeaf95f2c33df2c0177cb98ffd5fc0338 (diff) | |
download | mpv-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/input.c')
0 files changed, 0 insertions, 0 deletions