Skip to content

Commit

Permalink
stats.lua: only reprint stats on video-reconfig when toggled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guidocella authored and kasper93 committed Jan 4, 2025
1 parent 2e1bc3c commit 996e58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/lua/stats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 996e58a

Please sign in to comment.