summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-27 21:04:44 +0100
committerwm4 <wm4@nowhere>2014-10-27 21:05:21 +0100
commit963edf5765f1ed29e690a7716b4b60941b99945e (patch)
tree258de4e7dcd47490d563622ba5d405d834ef5df7
parent1d7ae5829e712b4d3a0ef2813031e9c3ad3aff4c (diff)
downloadmpv-963edf5765f1ed29e690a7716b4b60941b99945e.tar.bz2
mpv-963edf5765f1ed29e690a7716b4b60941b99945e.tar.xz
player: don't spam video-reconfig event
Without --force-window, this is called on every iteration or so, and calling uninit_video_out() sends the video-reconfig event. Avoid sending redundant events. Fixes #1225 (using an alternative patch).
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 0fc14f9b31..764dc05971 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -816,7 +816,7 @@ void handle_force_window(struct MPContext *mpctx, bool reconfig)
if (mpctx->d_video)
return;
- if (!mpctx->opts->force_vo)
+ if (!mpctx->opts->force_vo && mpctx->video_out)
uninit_video_out(mpctx);
if (mpctx->video_out && (!mpctx->video_out->config_ok || reconfig)) {