player: reset some VO state when video is terminated

Useful for idle mode or if video is switched off during playback, and
--force-window is used.
This commit is contained in:
wm4 2014-09-09 00:54:34 +02:00
parent c0fbab7a7c
commit e1e8b07cfa
1 changed files with 3 additions and 0 deletions

View File

@ -810,6 +810,9 @@ void handle_force_window(struct MPContext *mpctx, bool reconfig)
.d_w = w, .d_h = h,
};
vo_reconfig(vo, &p, 0);
vo_control(vo, VOCTRL_SET_CURSOR_VISIBILITY, &(bool){true});
vo_control(vo, VOCTRL_RESTORE_SCREENSAVER, NULL);
vo_set_paused(vo, true);
vo_redraw(vo);
mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL);
}