summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-22 11:19:39 +0200
committerwm4 <wm4@nowhere>2015-09-22 11:19:39 +0200
commita75e933dac4c6ebfd15c7c7cc0442fb21318df2a (patch)
tree338a4e9830fd8692eecabf2f3b463b355e21d0c2 /wscript
parentab7ac46bcc3bb68cfa3d4dfc920f8bd7143eebe0 (diff)
downloadmpv-a75e933dac4c6ebfd15c7c7cc0442fb21318df2a.tar.bz2
mpv-a75e933dac4c6ebfd15c7c7cc0442fb21318df2a.tar.xz
player: fix excessive CPU usage in audio-only mode
Caused by one of the --force-window commits. The unconditional uninit_video_out() call (which normally should be idempotent) raised sporadic MPV_EVENT_VIDEO_RECONFIG events. This is ok, except for the fact that clients (like a Lua script or libmpv users) would cause the event loop to run again after receiving it, triggering a feedback loop. Fix it by sending the events really only on a change.
Diffstat (limited to 'wscript')
0 files changed, 0 insertions, 0 deletions