[Mplayer-cvslog] CVS: main/libmpcodecs vf_rectangle.c,1.4,1.5

Attila Kinali CVS attila at mplayerhq.hu
Mon Oct 14 17:12:20 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv25396

Modified Files:
	vf_rectangle.c 
Log Message:
printf -> mp_msg
if something is not right, feel free to revert it


Index: vf_rectangle.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_rectangle.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vf_rectangle.c	10 Sep 2002 22:18:32 -0000	1.4
+++ vf_rectangle.c	14 Oct 2002 15:12:04 -0000	1.5
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include "mp_image.h"
+#include "../mp_msg.h"
 #include "vf.h"
 
 #include "../libvo/fastmemcpy.h"
@@ -25,7 +26,7 @@
 	vf->priv->y = (height - vf->priv->h) / 2;
     if (vf->priv->w + vf->priv->x > width
 	|| vf->priv->h + vf->priv->y > height) {
-	fprintf(stderr, "rectangle: bad position/width/height - rectangle area is out of the original!\n");
+	mp_msg(MSGT_VFILTER,MSGL_WARN,"rectangle: bad position/width/height - rectangle area is out of the original!\n");
 	return 0;
     }
     return vf_next_config(vf, width, height, d_width, d_height, flags, outfmt);
@@ -55,7 +56,7 @@
 	    return 1;
 	    break;
 	default:
-	    fprintf(stderr, "Unknown param %d \n", tmp[0]);
+	    mp_msg(MSGT_VFILTER,MSGL_FATAL,"Unknown param %d \n", tmp[0]);
 	    return 0;
 	}
     }
@@ -77,7 +78,7 @@
 
     /* Draw the rectangle */
 
-    fprintf(stderr, "rectangle: -vop crop=%d:%d:%d:%d \n", vf->priv->w, vf->priv->h, vf->priv->x, vf->priv->y);
+    mp_msg(MSGT_VFILTER,MSGL_DBG2, "rectangle: -vop crop=%d:%d:%d:%d \n", vf->priv->w, vf->priv->h, vf->priv->x, vf->priv->y);
 
     if (vf->priv->x < 0)
 	x = 0;




More information about the MPlayer-cvslog mailing list