summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2017-12-03 20:26:42 -0500
committerLeo Izen <leo.izen@gmail.com>2017-12-03 21:57:34 -0500
commita6ca1677941b817cce401eb4d75f9c049b789b55 (patch)
treea7859885e247f693508df5eae12a7fcf1d50fe84 /player/core.h
parente92d1b72a79c53369fdfd03b2d1499aa410324db (diff)
downloadmpv-a6ca1677941b817cce401eb4d75f9c049b789b55.tar.bz2
mpv-a6ca1677941b817cce401eb4d75f9c049b789b55.tar.xz
player: add get_play_start_pts
Added a get_play_start_pts function to coincide with the already-existing get_play_end_pts. This prevents code duplication and also serves to make it so code that probes the start time (such as get_current_pos_ratio) will work correctly with chapters. Included is a bug fix for misc.c/rel_time_to_abs that makes it work correctly with chapters when --rebase-start-time=no is set.
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 c3ceefd17d..80d7ad88f4 100644
--- a/player/core.h
+++ b/player/core.h
@@ -542,6 +542,7 @@ void issue_refresh_seek(struct MPContext *mpctx, enum seek_precision min_prec);
// misc.c
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);
void merge_playlist_files(struct playlist *pl);
float mp_get_cache_percent(struct MPContext *mpctx);
bool mp_get_cache_idle(struct MPContext *mpctx);