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

reimar subversion at mplayerhq.hu
Tue Oct 30 18:09:15 CET 2012


Author: reimar
Date: Tue Oct 30 18:09:14 2012
New Revision: 35292

Log:
Remove useless checks, the code would crash all over of widw/widh were NULL.

Modified:
   trunk/libvo/geometry.c

Modified: trunk/libvo/geometry.c
==============================================================================
--- trunk/libvo/geometry.c	Tue Oct 30 17:58:50 2012	(r35291)
+++ trunk/libvo/geometry.c	Tue Oct 30 18:09:14 2012	(r35292)
@@ -90,8 +90,8 @@ int geometry(int *xpos, int *ypos, int *
 		  "height: %i, xoff: %s%i, yoff: %s%i, xper: %i, yper: %i\n",
 		  width, height, xsign, xoff, ysign, yoff, xper, yper);
 
-		if (width  > 0 && widw) *widw = width;
-		if (height > 0 && widh) *widh = height;
+		if (width  > 0) *widw = width;
+		if (height > 0) *widh = height;
 
 		if(xoff != INT_MIN && xsign[0] == '-') xoff = scrw - *widw - xoff;
 		if(yoff != INT_MIN && ysign[0] == '-') yoff = scrh - *widh - yoff;


More information about the MPlayer-cvslog mailing list