mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 09:59:44 +00:00
command: force video refresh when changing aspect
Pausing the player and changing the aspect would leave the VO without a frame to display.
This commit is contained in:
parent
471d6f0013
commit
4f400d2b85
@ -1459,7 +1459,8 @@ static int mp_property_aspect(m_option_t *prop, int action, void *arg,
|
||||
if (f < 0.1)
|
||||
f = (float)mpctx->sh_video->disp_w / mpctx->sh_video->disp_h;
|
||||
mpctx->opts->movie_aspect = f;
|
||||
video_reinit_vo(mpctx->sh_video);
|
||||
reinit_video_filters(mpctx);
|
||||
mp_force_video_refresh(mpctx);
|
||||
return M_PROPERTY_OK;
|
||||
}
|
||||
case M_PROPERTY_GET:
|
||||
|
Loading…
Reference in New Issue
Block a user