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

Michael Niedermayer michaelni
Fri Jan 12 00:03:23 CET 2007


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

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

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- 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/8598f864/attachment.pgp>



More information about the ffmpeg-devel mailing list