1
0
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:
wm4 2013-09-15 22:03:29 +02:00
parent 471d6f0013
commit 4f400d2b85

View File

@ -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: