mirror of
https://github.com/mpv-player/mpv
synced 2025-02-19 14:26:57 +00:00
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:
parent
c0fbab7a7c
commit
e1e8b07cfa
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user