diff options
author | wm4 <wm4@nowhere> | 2013-09-15 22:03:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-15 22:03:29 +0200 |
commit | 4f400d2b855c63f9793dc5447d35c10f9be354bb (patch) | |
tree | 0cd8b728e9dc5299a2cd22a882d2657feba0c330 /mpvcore/command.c | |
parent | 471d6f0013e2b1f8d9740f09b817f8ea8ea31413 (diff) | |
download | mpv-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/command.c')
-rw-r--r-- | mpvcore/command.c | 3 |
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: |