[MPlayer-cvslog] r31318 - trunk/libvo/geometry.c

reimar subversion at mplayerhq.hu
Sat Jun 5 08:28:58 CEST 2010


Author: reimar
Date: Sat Jun  5 08:28:58 2010
New Revision: 31318

Log:
Add support for -geometry x syntax since the documentation claims
it is supported.

Modified:
   trunk/libvo/geometry.c

Modified: trunk/libvo/geometry.c
==============================================================================
--- trunk/libvo/geometry.c	Fri Jun  4 20:46:22 2010	(r31317)
+++ trunk/libvo/geometry.c	Sat Jun  5 08:28:58 2010	(r31318)
@@ -40,7 +40,7 @@ int geometry(int *xpos, int *ypos, int *
             int width, height, xoff, yoff, xper, yper;
             int i;
             int ok = 0;
-            for (i = 0; !ok && i < 8; i++) {
+            for (i = 0; !ok && i < 9; i++) {
                 width = height = xoff = yoff = xper = yper = INT_MIN;
                 strcpy(xsign, "+");
                 strcpy(ysign, "+");
@@ -72,6 +72,9 @@ int geometry(int *xpos, int *ypos, int *
                 case 7:
                     ok = sscanf(vo_geometry, "%i%1[%]%c", &xper, dummy, dummy) == 2;
                     break;
+                case 8:
+                    ok = sscanf(vo_geometry, "%i%c", &xoff, dummy) == 1;
+                    break;
                 }
             }
 		      if (!ok) {


More information about the MPlayer-cvslog mailing list