summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-03-15 09:58:33 +0100
committerKacper Michajłow <kasper93@gmail.com>2024-03-21 01:47:15 +0100
commit0deefd80bf37a50de1ace518a3212de4b2a750fc (patch)
treed36de120b2b7509895176fcc0bb68a5f7db96ed9
parent17a0756ed3536a9b8aa60adaa92859a0dba060ad (diff)
downloadmpv-0deefd80bf37a50de1ace518a3212de4b2a750fc.tar.bz2
mpv-0deefd80bf37a50de1ace518a3212de4b2a750fc.tar.xz
msg: clear buffered status_line on flush
It shouldn't be used after flush anymore.
-rw-r--r--common/msg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/msg.c b/common/msg.c
index 52550e9b62..9b17d5925b 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -269,6 +269,7 @@ void mp_msg_flush_status_line(struct mp_log *log, bool clear)
}
done:
+ log->root->status_line.len = 0;
mp_mutex_unlock(&log->root->lock);
}