summaryrefslogtreecommitdiffstats
path: root/core/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-04 00:36:53 +0200
committerwm4 <wm4@nowhere>2013-05-09 01:16:04 +0200
commitde8a53bb7001ac0c0c3480743bb1c6bff45bdb56 (patch)
tree542f134f6a0bec77979e5e83a6e8c4f93cc28d86 /core/mp_core.h
parentc40069a3810e401862386b737c140e3f590afc8d (diff)
downloadmpv-de8a53bb7001ac0c0c3480743bb1c6bff45bdb56.tar.bz2
mpv-de8a53bb7001ac0c0c3480743bb1c6bff45bdb56.tar.xz
core: refactor seek_chapter() function
Makes it easier to understand... maybe. It's still pretty strange how this function may either queue the seek or seek immediately. The way it actually works doesn't change, queuing the seek is just moved into the function. Also add a execute_queued_seek() function, which resets the queue state correctly.
Diffstat (limited to 'core/mp_core.h')
-rw-r--r--core/mp_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mp_core.h b/core/mp_core.h
index 2590eefb96..941396c48a 100644
--- a/core/mp_core.h
+++ b/core/mp_core.h
@@ -303,7 +303,7 @@ 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,
int exact);
-int seek_chapter(struct MPContext *mpctx, int chapter, double *seek_pts);
+bool mp_seek_chapter(struct MPContext *mpctx, int chapter);
double get_time_length(struct MPContext *mpctx);
double get_start_time(struct MPContext *mpctx);
double get_current_time(struct MPContext *mpctx);