diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-20 03:25:26 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-20 03:25:26 +0000 |
commit | c835270280ec535fcb407737504a6996174a6195 (patch) | |
tree | eda403c31f5d327d8430212052de4f0ec9217fb4 /libmpcodecs/vf_scale.c | |
parent | 8126f220e715b122fb6824c0b6527edfe363ce0e (diff) | |
download | mpv-c835270280ec535fcb407737504a6996174a6195.tar.bz2 mpv-c835270280ec535fcb407737504a6996174a6195.tar.xz |
big cosmetics patch, cleanup of messages printed by mplayer and libs.
some printf->mp_msg conversion, and some debug messages moved from warn/info to v/dbg2
mplayer's output is now shorter, readable and consistent
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6139 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_scale.c')
-rw-r--r-- | libmpcodecs/vf_scale.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index 38fc5d61de..6813f28a80 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -56,7 +56,7 @@ static int config(struct vf_instance_s* vf, int vo_flags; if(!best){ - printf("SwScale: no supported outfmt found :(\n"); + mp_msg(MSGT_VFILTER,MSGL_WARN,"SwScale: no supported outfmt found :(\n"); return 0; } @@ -95,7 +95,7 @@ static int config(struct vf_instance_s* vf, if(vf->priv->h<0) vf->priv->h=height; else if(vf->priv->h==0) vf->priv->h=d_height; - printf("SwScale scaling %dx%d %s to %dx%d %s \n", + mp_msg(MSGT_VFILTER,MSGL_DBG2,"SwScale: scaling %dx%d %s to %dx%d %s \n", width,height,vo_format_name(outfmt), vf->priv->w,vf->priv->h,vo_format_name(best)); @@ -109,7 +109,7 @@ static int config(struct vf_instance_s* vf, (best==IMGFMT_I420 || best==IMGFMT_IYUV)?IMGFMT_YV12:best); if(!vf->priv->ctx){ // error... - printf("Couldn't init SwScaler for this setup\n"); + mp_msg(MSGT_VFILTER,MSGL_WARN,"Couldn't init SwScaler for this setup\n"); return 0; } vf->priv->fmt=best; @@ -184,7 +184,7 @@ static int open(vf_instance_t *vf, char* args){ if(args) sscanf(args, "%d:%d", &vf->priv->w, &vf->priv->h); - printf("SwScale: %d x %d (-1=no scaling)\n", + mp_msg(MSGT_VFILTER,MSGL_V,"SwScale params: %d x %d (-1=no scaling)\n", vf->priv->w, vf->priv->h); return 1; |