summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-15 23:32:37 +0200
committerwm4 <wm4@nowhere>2014-08-15 23:32:37 +0200
commitfa7c421588cb856481a948d2a95eef7c9e228b45 (patch)
tree34ca0ab3d1cac35135b07cb67d4646221d140158 /player/core.h
parent318e8da25071a76a3d88944304ae91f6d25d7f43 (diff)
downloadmpv-fa7c421588cb856481a948d2a95eef7c9e228b45.tar.bz2
mpv-fa7c421588cb856481a948d2a95eef7c9e228b45.tar.xz
player: use virtual time for --audio-file with ordered chapters
Apparently users prefer this behavior. It was used for subtitles too, so move the code to calculate the video offset into a separate function. Seeking also needs to be fixed. Fixes #1018.
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 4ee2916bbb..594f105668 100644
--- a/player/core.h
+++ b/player/core.h
@@ -421,6 +421,7 @@ void mp_print_version(struct mp_log *log, int always);
// misc.c
double get_start_time(struct MPContext *mpctx);
double get_main_demux_pts(struct MPContext *mpctx);
+double get_track_video_offset(struct MPContext *mpctx, struct track *track);
double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t);
double get_play_end_pts(struct MPContext *mpctx);
double get_relative_time(struct MPContext *mpctx);