[Mplayer-cvslog] CVS: main mplayer.c,1.784,1.785

Sascha Sommer CVS syncmail at mplayerhq.hu
Wed Sep 15 11:45:37 CEST 2004


CVS change done by Sascha Sommer CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv20312

Modified Files:
	mplayer.c 
Log Message:
slave mode command to switch aspect ratio, patch by Aurelien Jacobs <aurel at gnuage.org>

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.784
retrieving revision 1.785
diff -u -r1.784 -r1.785
--- mplayer.c	15 Sep 2004 09:29:10 -0000	1.784
+++ mplayer.c	15 Sep 2004 09:45:34 -0000	1.785
@@ -2530,6 +2530,13 @@
       }
       break;
 #endif
+    case MP_CMD_SWITCH_RATIO : {
+      if (cmd->nargs == 0)
+	movie_aspect = (float) sh_video->disp_w / sh_video->disp_h;
+      else
+	movie_aspect = cmd->args[0].v.f;
+      mpcodecs_config_vo (sh_video, sh_video->disp_w, sh_video->disp_h, 0);
+    } break;
     case MP_CMD_AUDIO_DELAY : {
       float v = cmd->args[0].v.f;
       audio_delay += v;




More information about the MPlayer-cvslog mailing list