From 70df1608d6f74f3eba9a5e593822984194f63951 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 16 Nov 2015 22:47:17 +0100 Subject: player: handle rebasing start time differently Most of this is explained in the DOCS additions. This gives us slightly more sanity, because there is less interaction between the various parts. The goal is getting rid of the video_offset entirely. The simplification extends to the user API. In particular, we don't need to fix missing parts in the API, such as the lack for a seek command that seeks relatively to the start time. All these things are now transparent. (If someone really wants to know the real timestamps/start time, new properties would have to be added.) --- options/options.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 5cb5e2b522..a42d818c83 100644 --- a/options/options.c +++ b/options/options.c @@ -198,6 +198,8 @@ const m_option_t mp_opts[] = { OPT_REL_TIME("end", play_end, 0), OPT_REL_TIME("length", play_length, 0), + OPT_FLAG("rebase-start-time", rebase_start_time, 0), + OPT_TIME("ab-loop-a", ab_loop[0], 0, .min = MP_NOPTS_VALUE), OPT_TIME("ab-loop-b", ab_loop[1], 0, .min = MP_NOPTS_VALUE), @@ -763,6 +765,7 @@ const struct MPOpts mp_default_opts = { .consolecontrols = 1, .playlist_pos = -1, .play_frames = -1, + .rebase_start_time = 1, .keep_open = 0, .stream_id = { { [STREAM_AUDIO] = -1, [STREAM_VIDEO] = -1, -- cgit v1.2.3