Commit 7c7c5b24 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/log: allow av_log_set_callback (NULL)

Idea-by: 's avatarDon Moir <donmoir@comcast.net>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8ea5df4f
......@@ -165,7 +165,8 @@ void av_log(void* avcl, int level, const char *fmt, ...)
void av_vlog(void* avcl, int level, const char *fmt, va_list vl)
{
av_log_callback(avcl, level, fmt, vl);
if(av_log_callback)
av_log_callback(avcl, level, fmt, vl);
}
int av_log_get_level(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment