# HG changeset patch # User ben # Date 1151270212 0 # Node ID ab94d003023d745c13849588809f03806395d9fa # Parent a2b064a4877557d7cb44f095d85f360accde54a1 switch_ratio -1 slave command restores aspect ratio to default value (geexbox patch) diff -r a2b064a48775 -r ab94d003023d mplayer.c --- a/mplayer.c Sun Jun 25 20:59:12 2006 +0000 +++ b/mplayer.c Sun Jun 25 21:16:52 2006 +0000 @@ -4223,7 +4223,7 @@ } 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;