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

Axel Holzinger aholzinger
Fri Jan 12 13:59:43 CET 2007


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.

Cheers
Axel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: av_log_external_default_callback.diff
Type: application/octet-stream
Size: 903 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070112/c0e38b36/attachment.obj>



More information about the ffmpeg-devel mailing list