summaryrefslogtreecommitdiffstats
path: root/player/lua/defaults.lua
diff options
context:
space:
mode:
Diffstat (limited to 'player/lua/defaults.lua')
-rw-r--r--player/lua/defaults.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua
index c264175768..37c05dea92 100644
--- a/player/lua/defaults.lua
+++ b/player/lua/defaults.lua
@@ -360,7 +360,7 @@ function mp.dispatch_events(allow_wait)
if wait == nil then
wait = 1e20 -- infinity for all practical purposes
end
- if more_events then
+ if more_events or wait < 0 then
wait = 0
end
-- Resume playloop - important especially if an error happened while