summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-12-15 19:38:07 +0100
committerDudemanguy <random342@airmail.cc>2023-12-27 20:59:22 +0000
commitcadb68487e9c8f4237ba59b672180ad1460db514 (patch)
tree5dc379238569090600360e2f36340b9474147e27 /player/command.c
parent19a37f625fcd502acea42b4f27029c8be724d40c (diff)
downloadmpv-cadb68487e9c8f4237ba59b672180ad1460db514.tar.bz2
mpv-cadb68487e9c8f4237ba59b672180ad1460db514.tar.xz
msg: keep status line on the end of file
Apparently found useful by some users. Fixes: #13092
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 7bd2380274..ad61d773e1 100644
--- a/player/command.c
+++ b/player/command.c
@@ -5770,7 +5770,7 @@ static void cmd_run(void *p)
char **args = talloc_zero_array(NULL, char *, cmd->num_args + 1);
for (int n = 0; n < cmd->num_args; n++)
args[n] = cmd->args[n].v.s;
- mp_msg_flush_status_line(mpctx->log);
+ mp_msg_flush_status_line(mpctx->log, true);
struct mp_subprocess_opts opts = {
.exe = args[0],
.args = args,
@@ -6878,6 +6878,9 @@ static void command_event(struct MPContext *mpctx, int event, void *arg)
if (event == MPV_EVENT_PLAYBACK_RESTART)
ctx->last_seek_time = mp_time_sec();
+ if (event == MPV_EVENT_END_FILE)
+ mp_msg_flush_status_line(mpctx->log, false);
+
if (event == MPV_EVENT_END_FILE || event == MPV_EVENT_FILE_LOADED) {
// Update chapters - does nothing if something else is visible.
set_osd_bar_chapters(mpctx, OSD_BAR_SEEK);