From 963edf5765f1ed29e690a7716b4b60941b99945e Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 27 Oct 2014 21:04:44 +0100 Subject: 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). --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3