changeset 7738:d414735695ea

printf -> mp_msg if something is not right, feel free to revert it
author attila
date Mon, 14 Oct 2002 15:12:04 +0000
parents eed6c51db291
children 5b8df1d63b6d
files libmpcodecs/vf_rectangle.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_rectangle.c	Mon Oct 14 14:03:12 2002 +0000
+++ b/libmpcodecs/vf_rectangle.c	Mon Oct 14 15:12:04 2002 +0000
@@ -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;