[MPlayer-cvslog] r30492 - trunk/libvo/geometry.c
reimar
subversion at mplayerhq.hu
Tue Feb 2 22:18:21 CET 2010
Author: reimar
Date: Tue Feb 2 22:18:21 2010
New Revision: 30492
Log:
Remove pointless initializers and also set geometry_*_changed to 0 when
-geometry did not adjust some values (instead of only ever setting them to 1
and never reset them).
Modified:
trunk/libvo/geometry.c
Modified: trunk/libvo/geometry.c
==============================================================================
--- trunk/libvo/geometry.c Tue Feb 2 21:43:20 2010 (r30491)
+++ trunk/libvo/geometry.c Tue Feb 2 22:18:21 2010 (r30492)
@@ -25,10 +25,10 @@
#include "mp_msg.h"
/* A string of the form [WxH][+X+Y] or xpos[%]:ypos[%] */
-char *vo_geometry = NULL;
+char *vo_geometry;
// set when either width or height is changed
-int geometry_wh_changed = 0;
-int geometry_xy_changed = 0;
+int geometry_wh_changed;
+int geometry_xy_changed;
#define RESET_GEOMETRY width = height = xoff = yoff = xper = yper = INT_MIN;
@@ -96,10 +96,8 @@ int geometry(int *xpos, int *ypos, int *
if (width > 0 && widw) *widw = width;
if (height > 0 && widh) *widh = height;
- if (width > 0 || height > 0)
- geometry_wh_changed = 1;
- if (xoff != INT_MIN || yoff != INT_MIN)
- geometry_xy_changed = 1;
+ geometry_wh_changed = width > 0 || height > 0;
+ geometry_xy_changed = xoff != INT_MIN || yoff != INT_MIN;
}
return 1;
}
More information about the MPlayer-cvslog
mailing list