[Mplayer-cvslog] CVS: main/libmpcodecs vf_palette.c,1.8,1.9 vf_scale.c,1.29,1.30
Arpi of Ize
arpi at mplayerhq.hu
Tue Feb 4 18:51:42 CET 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv16025
Modified Files:
vf_palette.c vf_scale.c
Log Message:
move some verbose msg to dbg2
Index: vf_palette.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_palette.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- vf_palette.c 10 Sep 2002 22:18:32 -0000 1.8
+++ vf_palette.c 4 Feb 2003 17:51:39 -0000 1.9
@@ -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;
}
Index: vf_scale.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_scale.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- vf_scale.c 30 Jan 2003 09:14:58 -0000 1.29
+++ vf_scale.c 4 Feb 2003 17:51:39 -0000 1.30
@@ -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;
More information about the MPlayer-cvslog
mailing list