From 996e58a738f89ce57babab6967ce4829310a5b9f Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Thu, 19 Dec 2024 18:50:06 +0100 Subject: [PATCH] stats.lua: only reprint stats on video-reconfig when toggled Make this behave like the comment says it should, because currently when you show oneshot stats and change file, stats are printed again and hide --osd-playing-msg. This happens even if you hide the stats by show-texting something else and change file before the timer expires. --- player/lua/stats.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 42ef3b8501bfe..dd3bb24ce2016 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -1740,7 +1740,7 @@ end -- Reprint stats immediately when VO was reconfigured, only when toggled mp.register_event("video-reconfig", function() - if display_timer:is_enabled() then + if display_timer:is_enabled() and not display_timer.oneshot then print_page(curr_page) end end)