summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 25a4404c76..32dbd94e32 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2530,6 +2530,13 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
}
break;
#endif
+ case MP_CMD_SWITCH_RATIO : {
+ if (cmd->nargs == 0)
+ movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;
+ else
+ movie_aspect = cmd->args[0].v.f;
+ mpcodecs_config_vo (sh_video, sh_video->disp_w, sh_video->disp_h, 0);
+ } break;
case MP_CMD_AUDIO_DELAY : {
float v = cmd->args[0].v.f;
audio_delay += v;