summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-24 07:36:43 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-25 03:34:28 +0300
commit60e2c8604d29963e8b4a4dc5f506a3886c58202d (patch)
tree816b4ecc2226d62d3bad9d084458026dbd1cf280 /command.c
parent0a39709c15890161388e6d32cceea2ff3350aa82 (diff)
downloadmpv-60e2c8604d29963e8b4a4dc5f506a3886c58202d.tar.bz2
mpv-60e2c8604d29963e8b4a4dc5f506a3886c58202d.tar.xz
Move movie_aspect to options struct
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index 29ccdcfd99..dc23c8cc5e 100644
--- a/command.c
+++ b/command.c
@@ -2413,9 +2413,9 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
case MP_CMD_SWITCH_RATIO:
if (cmd->nargs == 0 || cmd->args[0].v.f == -1)
- movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;
+ opts->movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;
else
- movie_aspect = cmd->args[0].v.f;
+ opts->movie_aspect = cmd->args[0].v.f;
mpcodecs_config_vo(sh_video, sh_video->disp_w, sh_video->disp_h, 0);
break;