diff options
author | wm4 <wm4@nowhere> | 2014-03-25 02:18:12 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-25 02:18:12 +0100 |
commit | c19c777061531d4831f93ddc34490e6537448c19 (patch) | |
tree | 8942fd90d92e5531b620db4ea0aef93ce5970f52 /player/command.c | |
parent | 5cae4a807ca3d3c04932490f0b6f72ce1bf57a53 (diff) | |
download | mpv-c19c777061531d4831f93ddc34490e6537448c19.tar.bz2 mpv-c19c777061531d4831f93ddc34490e6537448c19.tar.xz |
player: let chapter_start_time() return MP_NOPTS_VALUE for unknown times
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index d9854af9e8..52a98fff86 100644 --- a/player/command.c +++ b/player/command.c @@ -490,7 +490,7 @@ static int mp_property_chapter(m_option_t *prop, int action, void *arg, chapter_start_time(mpctx, chapter); // If we are far enough into a chapter, seek back to the // beginning of current chapter instead of previous one - if (current_chapter_start >= 0 && + if (current_chapter_start != MP_NOPTS_VALUE && get_current_time(mpctx) - current_chapter_start > mpctx->opts->chapter_seek_threshold) step_all++; |