summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-15 09:45:34 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-15 09:45:34 +0000
commitc95142bc23ae6569a14a3f692f4d2aa9048db9c2 (patch)
tree098ac823ebcb3ca6d0c79379d15fe6a1f5393057 /mplayer.c
parent49c553dc7fbeb3e62a046cb8d51aec3ab90a83cc (diff)
downloadmpv-c95142bc23ae6569a14a3f692f4d2aa9048db9c2.tar.bz2
mpv-c95142bc23ae6569a14a3f692f4d2aa9048db9c2.tar.xz
slave mode command to switch aspect ratio, patch by Aurelien Jacobs <aurel at gnuage.org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13340 b3059339-0415-0410-9bf9-f77b7e298cf2
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;