From ff7e2946103ce35da702e57e03012c29215017d2 Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Sun, 3 Dec 2017 22:19:16 -0500 Subject: 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. --- player/core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'player/core.h') 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); -- cgit v1.2.3