# HG changeset patch # User attila # Date 1034608324 0 # Node ID d414735695eae06f4b2bb51e8345a09b2cac6131 # Parent eed6c51db29174052188399edb9f7b5dbeb91660 printf -> mp_msg if something is not right, feel free to revert it diff -r eed6c51db291 -r d414735695ea libmpcodecs/vf_rectangle.c --- 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 #include #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;