summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2017-12-03 22:19:16 -0500
committerLeo Izen <leo.izen@gmail.com>2017-12-03 22:23:24 -0500
commitff7e2946103ce35da702e57e03012c29215017d2 (patch)
treecb13071a68dbd3609b44d205964a65e7e4386783 /player/core.h
parenta6ca1677941b817cce401eb4d75f9c049b789b55 (diff)
downloadmpv-ff7e2946103ce35da702e57e03012c29215017d2.tar.bz2
mpv-ff7e2946103ce35da702e57e03012c29215017d2.tar.xz
player: use start timestamp for ab-looping if --ab-loop-a is absent
If --ab-loop-b is present, then ab-looping will be enabled and will attempt to seek to the beginning of the file. This patch changes it so it will instead seek to the start of playback, either via --start or some equivalent, rather than always to the beginning of the file.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h
index 80d7ad88f4..0b5f610737 100644
--- a/player/core.h
+++ b/player/core.h
@@ -543,6 +543,7 @@ void issue_refresh_seek(struct MPContext *mpctx, enum seek_precision min_prec);
double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t);
double get_play_end_pts(struct MPContext *mpctx);
double get_play_start_pts(struct MPContext *mpctx);
+double get_ab_loop_start_time(struct MPContext *mpctx);
void merge_playlist_files(struct playlist *pl);
float mp_get_cache_percent(struct MPContext *mpctx);
bool mp_get_cache_idle(struct MPContext *mpctx);