[MPlayer-dev-eng] [PATCH] some small updates

Diego Biurrun diego at biurrun.de
Sun Apr 3 18:42:13 CEST 2005


On Sun, Apr 03, 2005 at 11:28:15AM -0500, Joey Parrish wrote:
> On Sun, Apr 03, 2005 at 03:23:39PM +0200, Diego Biurrun wrote:
> > On Sat, Mar 19, 2005 at 04:45:51AM +0000, adland wrote:
> > > I am enclosing a set of small possible updates in this PATCH
> > > please review
> > > libao2/ao_esd.c - replace printf with mp_msg 
> > > 
> > > --- main/libao2/ao_esd.c	2005-01-13 09:32:31.000000000 -0500
> > > +++ updated/libao2/ao_esd.c	2005-03-18 21:13:21.000000000 -0500
> > > @@ -41,7 +41,7 @@
> > > #undef	ESD_DEBUG
> > > 
> > > #if	ESD_DEBUG
> > > -#define	dprintf(...)	printf(__VA_ARGS__)
> > > +#define	dprintf(...)	mp_msg(MSGT_AO, MSGL_DBG2,__VA_ARGS__)
> > 
> > What is the advantage of this change?  Debug output does not get
> > translated anyway, so why use mp_msg?
> 
> So that stdout is not flooded.  We can easily modify mp_msg to keep
> console clean and push text output elsewhere.  Printf should not be used
> outside of mp_msg, IMO.

dprintf is in #if ESD_DEBUG anyway, so I guess it is pointless to change
it to mp_msg...  Maybe it would be better to just use mp_msg with
MSGL_DBG2 or so...

Diego




More information about the MPlayer-dev-eng mailing list