From 5c6bf0cfe75cdb3496cde1dc8918df4feb111505 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 25 Jun 2006 21:16:52 +0000 Subject: switch_ratio -1 slave command restores aspect ratio to default value (geexbox patch) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18822 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index fd5ceef487..8ed7099abe 100644 --- a/mplayer.c +++ b/mplayer.c @@ -4223,7 +4223,7 @@ if(step_sec>0) { } break; case MP_CMD_SWITCH_RATIO : { - if (cmd->nargs == 0) + if (cmd->nargs == 0 || cmd->args[0].v.f == -1) movie_aspect = (float) sh_video->disp_w / sh_video->disp_h; else movie_aspect = cmd->args[0].v.f; -- cgit v1.2.3