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

Axel Holzinger aholzinger
Fri Jan 12 10:49:15 CET 2007


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.

Cheers
Axel





More information about the ffmpeg-devel mailing list