summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-15 22:03:29 +0200
committerwm4 <wm4@nowhere>2013-09-15 22:03:29 +0200
commit4f400d2b855c63f9793dc5447d35c10f9be354bb (patch)
tree0cd8b728e9dc5299a2cd22a882d2657feba0c330 /mpvcore
parent471d6f0013e2b1f8d9740f09b817f8ea8ea31413 (diff)
downloadmpv-4f400d2b855c63f9793dc5447d35c10f9be354bb.tar.bz2
mpv-4f400d2b855c63f9793dc5447d35c10f9be354bb.tar.xz
command: force video refresh when changing aspect
Pausing the player and changing the aspect would leave the VO without a frame to display.
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpvcore/command.c b/mpvcore/command.c
index df78f59d4b..dedac9dc10 100644
--- a/mpvcore/command.c
+++ b/mpvcore/command.c
@@ -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: