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).
This commit is contained in:
wm4 2014-10-27 21:04:44 +01:00
parent 1d7ae5829e
commit 963edf5765
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {