[Ffmpeg-devel] [PATCH] uninstall custom log callback

Michael Niedermayer michaelni
Fri Jan 12 18:38:03 CET 2007


Hi

On Fri, Jan 12, 2007 at 01:59:43PM +0100, Axel Holzinger wrote:
> Hi
> 
> > Hi
> >
> > > Hi
> > >
> > > On Thu, Jan 11, 2007 at 10:11:38PM +0100, Axel Holzinger wrote:
> > > > Hi Michael,
> > > >
> > > > > On Thu, Jan 11, 2007 at 09:10:00PM +0100, Michael Niedermayer wrote:
> > > > > Hi
> > > > >
> > > > > On Thu, Jan 11, 2007 at 04:54:56PM +0100, Axel Holzinger wrote:
> > > > > > Hi,
> > > > > >
> > > > > > here a mini patch that enables av_log_set_callback to uninstall
> > > > > a previously
> > > > > > installed custom log callback.
> > > > > >
> > > > > > If a null pointer is supplied, the default log callback
> > is restored.
> > > > >
> > > > > rejected
> > > > >
> > > > > use av_log_set_callback(av_log_default_callback);
> > > >
> > > > Answer rejected ;-)
> > > >
> > > > I would use it like this, but this is the proto:
> > > > static void av_log_default_callback(void* ptr, int level, const
> > > char* fmt,
> > > > va_list vl);
> > > >
> > > > As you see, av_log_default_callback is static and thus invisible.
> > >
> > > then change that rather
> >
> > D'accord.
> >
> > I just want to note that this means changing the related public
> > header file
> > also.
> 
> Here comes the patch with external av_log_default_callback.

looks ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I count him braver who overcomes his desires than him who conquers his
enemies for the hardest victory is over self. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070112/b187dc82/attachment.pgp>



More information about the ffmpeg-devel mailing list