mirror of https://github.com/mpv-player/mpv
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:
parent
1d7ae5829e
commit
963edf5765
|
@ -816,7 +816,7 @@ void handle_force_window(struct MPContext *mpctx, bool reconfig)
|
||||||
if (mpctx->d_video)
|
if (mpctx->d_video)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!mpctx->opts->force_vo)
|
if (!mpctx->opts->force_vo && mpctx->video_out)
|
||||||
uninit_video_out(mpctx);
|
uninit_video_out(mpctx);
|
||||||
|
|
||||||
if (mpctx->video_out && (!mpctx->video_out->config_ok || reconfig)) {
|
if (mpctx->video_out && (!mpctx->video_out->config_ok || reconfig)) {
|
||||||
|
|
Loading…
Reference in New Issue