summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-10 12:11:14 +0200
committerwm4 <wm4@nowhere>2015-07-10 12:11:14 +0200
commit4e767826303567f3ccd70c84b462b5dd0c140f6c (patch)
treea304b9bbe8ac708f4d19bfe862ce255cdd9cc649 /player/core.h
parenta46de35abb19810fc0587d7857f63de210e06e40 (diff)
downloadmpv-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.h1
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);