[MPlayer-cvslog] r18822 - trunk/mplayer.c

ben subversion at mplayerhq.hu
Sun Jun 25 23:16:53 CEST 2006


Author: ben
Date: Sun Jun 25 23:16:52 2006
New Revision: 18822

Modified:
   trunk/mplayer.c

Log:
switch_ratio -1 slave command restores aspect ratio to default value (geexbox patch)

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sun Jun 25 23:16:52 2006
@@ -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;



More information about the MPlayer-cvslog mailing list