[libav-devel] [RFC] Getting rid of the global log callback

Luca Barbato lu_zero at gentoo.org
Sun Dec 17 19:45:16 CET 2017

On 17/12/2017 15:17, RĂ©mi Denis-Courmont wrote:
>> user_context may need a user_free(),
> Why oh why?

For consistency and to avoid some ugly corner cases.

> There should be a point when the libavcodec user application can safely assume
> that the callback will no longer be used - e.g. when the context is closed.
> Using a free callback is only making things needlessly brittle and complicated
> on both sides.

I totally agree, but I'm quite afraid this totally reasonable and valid 
assumption might or might not be always valid, thus the may in the comments.

If there is agreement on the use case I'm more than happy to have less 
fields to fill.


More information about the libav-devel mailing list