changeset 9276:9fd44bc91631

move some verbose msg to dbg2
author arpi
date Tue, 04 Feb 2003 17:51:39 +0000
parents d29f03d5763c
children d824f1a3c341
files libmpcodecs/vf_palette.c libmpcodecs/vf_scale.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_palette.c	Tue Feb 04 17:50:30 2003 +0000
+++ b/libmpcodecs/vf_palette.c	Tue Feb 04 17:51:39 2003 +0000
@@ -40,7 +40,7 @@
     else return 0;
     while(*p){
 	ret=vf->next->query_format(vf->next,*p);
-	mp_msg(MSGT_VFILTER,MSGL_V,"[%s] query(%s) -> %d\n",vf->info->name,vo_format_name(*p),ret&3);
+	mp_msg(MSGT_VFILTER,MSGL_DBG2,"[%s] query(%s) -> %d\n",vf->info->name,vo_format_name(*p),ret&3);
 	if(ret&VFCAP_CSP_SUPPORTED_BY_HW){ best=*p; break;} // no conversion -> bingo!
 	if(ret&VFCAP_CSP_SUPPORTED && !best) best=*p; // best with conversion
 	++p;
@@ -52,6 +52,7 @@
 
 struct vf_priv_s {
     unsigned int fmt;
+    int pal_msg;
 };
 
 static int config(struct vf_instance_s* vf,
@@ -78,7 +79,10 @@
 
     if (!mpi->planes[1])
     {
-	mp_msg(MSGT_VFILTER,MSGL_V,"[%s] no palette given, assuming builtin grayscale one\n",vf->info->name);
+	if(!vf->priv->pal_msg){
+	    mp_msg(MSGT_VFILTER,MSGL_V,"[%s] no palette given, assuming builtin grayscale one\n",vf->info->name);
+	    vf->priv->pal_msg=1;
+	}
 	mpi->planes[1] = (unsigned char*)gray_pal;
     }
 
--- a/libmpcodecs/vf_scale.c	Tue Feb 04 17:50:30 2003 +0000
+++ b/libmpcodecs/vf_scale.c	Tue Feb 04 17:51:39 2003 +0000
@@ -66,7 +66,7 @@
     // find the best outfmt:
     while(*p){
 	int ret=vf_next_query_format(vf,*p);
-	mp_msg(MSGT_VFILTER,MSGL_V,"scale: query(%s) -> %d\n",vo_format_name(*p),ret&3);
+	mp_msg(MSGT_VFILTER,MSGL_DBG2,"scale: query(%s) -> %d\n",vo_format_name(*p),ret&3);
 	if(ret&VFCAP_CSP_SUPPORTED_BY_HW){ best=*p; break;} // no conversion -> bingo!
 	if(ret&VFCAP_CSP_SUPPORTED && !best) best=*p; // best with conversion
 	++p;