diff options
author | wm4 <wm4@nowhere> | 2014-09-09 00:54:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-09 01:23:10 +0200 |
commit | e1e8b07cfa04584000f7d203e5a8b71cb7b3f0a8 (patch) | |
tree | 706b403a36a7207623b61b022a859927f393b985 /player | |
parent | c0fbab7a7cfcca8c1fa6ac5ea532924b35938923 (diff) | |
download | mpv-e1e8b07cfa04584000f7d203e5a8b71cb7b3f0a8.tar.bz2 mpv-e1e8b07cfa04584000f7d203e5a8b71cb7b3f0a8.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |