summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_rectangle.c
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-14 15:12:04 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-14 15:12:04 +0000
commit1b3453f29f94af2d3ce1f9f5de7441a32b9ba33d (patch)
tree9a8a533cb45345af74aa1cad0d7a4f09bf819cd5 /libmpcodecs/vf_rectangle.c
parent5f388cfb9d494bb9e9671fd9f6a653eb03050b5a (diff)
downloadmpv-1b3453f29f94af2d3ce1f9f5de7441a32b9ba33d.tar.bz2
mpv-1b3453f29f94af2d3ce1f9f5de7441a32b9ba33d.tar.xz
printf -> mp_msg
if something is not right, feel free to revert it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7739 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_rectangle.c')
-rw-r--r--libmpcodecs/vf_rectangle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libmpcodecs/vf_rectangle.c b/libmpcodecs/vf_rectangle.c
index 292d28a7fd..6de85c2c9c 100644
--- a/libmpcodecs/vf_rectangle.c
+++ b/libmpcodecs/vf_rectangle.c
@@ -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 @@ config(struct vf_instance_s* vf,
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 @@ control(struct vf_instance_s* vf, int request, void *data)
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 @@ put_image(struct vf_instance_s* vf, mp_image_t* mpi){
/* 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;