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
This commit is contained in:
ben 2006-06-25 21:16:52 +00:00
parent be1d649e96
commit 5c6bf0cfe7
1 changed files with 1 additions and 1 deletions

View File

@ -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;