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

Paul Andreassen paulx at andreassen.com.au
Sun Oct 1 07:27:19 UTC 2006


On Thu, 28 Sep 2006 01:12 am, Paul Andreassen wrote:
> On Wed, 27 Sep 2006 02:28 am, Stuart Auchterlonie wrote:
> > 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
>
> Hi Stuart,
>
> OK, I'll do that.  I might still report the error level to VB_GENERAL.
>
> Thanks,
> Paul

Patch updated.

Paul
-- 


More information about the mythtv-dev mailing list