[mythtv] Ticket #2460: Add proper cout buffered logging of libavcodec

Stuart Auchterlonie stuarta at squashedfrog.net
Tue Sep 26 16:28:18 UTC 2006


On Wed, Sep 27, 2006 at 01:56:03AM +1000, Paul Andreassen wrote:
> On Tue, 26 Sep 2006 02:56 am, MythTV wrote:
> > #2460: Add proper cout buffered logging of libavcodec
> >
> >  This is a good starting point. It should use the
> >  myth VERBOSE macros with an appropriate level ie. VB_LIBAV
> >  rather than cout to print the messages.
> 
> I get a lot of these messages and would prefer the cout to buffering them 
> until a VERBOSE message comes along.

What I mean by that is replacing the

mutex.lock();
cout << msg;
mutex.unlock();

with

VERBOSE(VB_LIBAV, msg);

in your function myth_av_log(...)

if you look at the VERBOSE macro it effectively does the
same thing with the added bonus of timestamping and the
ability to turn them off, by not selecting --verbose VB_LIBAV


Stuart



More information about the mythtv-dev mailing list