changeset 18818:ab94d003023d

switch_ratio -1 slave command restores aspect ratio to default value (geexbox patch)
author ben
date Sun, 25 Jun 2006 21:16:52 +0000
parents a2b064a48775
children cd0491dc2afa
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;