diff options
author | wm4 <wm4@nowhere> | 2015-07-10 12:11:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-10 12:11:14 +0200 |
commit | 4e767826303567f3ccd70c84b462b5dd0c140f6c (patch) | |
tree | a304b9bbe8ac708f4d19bfe862ce255cdd9cc649 /player/core.h | |
parent | a46de35abb19810fc0587d7857f63de210e06e40 (diff) | |
download | mpv-4e767826303567f3ccd70c84b462b5dd0c140f6c.tar.bz2 mpv-4e767826303567f3ccd70c84b462b5dd0c140f6c.tar.xz |
player: refactor chapter seek code
mp_seek_chapter() had only 1 caller. Also the code was rather
roundabout; the entire function can be compressed to 5 lines of code.
(The new code is functionally the same - "mpctx->last_chapter_seek =
-2;" was effectively a dead assingment.)
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h index 885c2d2052..80cf7178dd 100644 --- a/player/core.h +++ b/player/core.h @@ -451,7 +451,6 @@ void unpause_player(struct MPContext *mpctx); void add_step_frame(struct MPContext *mpctx, int dir); void queue_seek(struct MPContext *mpctx, enum seek_type type, double amount, enum seek_precision exact, bool immediate); -bool mp_seek_chapter(struct MPContext *mpctx, int chapter); double get_time_length(struct MPContext *mpctx); double get_current_time(struct MPContext *mpctx); double get_playback_time(struct MPContext *mpctx); |