From e1e8b07cfa04584000f7d203e5a8b71cb7b3f0a8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 9 Sep 2014 00:54:34 +0200 Subject: 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. --- player/playloop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index d476137c12..a06165dfce 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -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); } -- cgit v1.2.3