diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-10 18:53:45 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-13 19:58:20 +0000 |
commit | c62b45ec2ab020dad04a95aff3c85aab631b1f32 (patch) | |
tree | 3c3c41ef746155f0d7687e2266abac47c00292c9 /options/options.c | |
parent | 6ea08be59ac503f7309a19a50d5e664426e8c9f3 (diff) | |
download | mpv-c62b45ec2ab020dad04a95aff3c85aab631b1f32.tar.bz2 mpv-c62b45ec2ab020dad04a95aff3c85aab631b1f32.tar.xz |
player: add --term-remaining-playtime option
The OSC reports the speed-adjusted remaining time, but the terminal does
not. This is a weird mismatch and the OSC's default behavior makes
sense, so let's just do some division and add an option to disable it.
Also named "remaining-playtime" after the OSC option. Fixes #10445.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index d8b68cb448..027c93e904 100644 --- a/options/options.c +++ b/options/options.c @@ -752,6 +752,7 @@ static const m_option_t mp_opts[] = { {"term-osd-bar", OPT_BOOL(term_osd_bar), .flags = UPDATE_OSD}, {"term-osd-bar-chars", OPT_STRING(term_osd_bar_chars), .flags = UPDATE_OSD}, + {"term-remaining-playtime", OPT_BOOL(term_remaining_playtime), .flags = UPDATE_OSD}, {"term-title", OPT_STRING(term_title), .flags = UPDATE_OSD}, {"term-playing-msg", OPT_STRING(playing_msg)}, @@ -1024,6 +1025,7 @@ static const struct MPOpts mp_default_opts = { .frame_dropping = 1, .term_osd = 2, .term_osd_bar_chars = "[-+-]", + .term_remaining_playtime = true, .consolecontrols = true, .playlist_pos = -1, .play_frames = -1, |