1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avutil/log: allow av_log_set_callback (NULL)

Idea-by: Don Moir <donmoir@comcast.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-05-10 19:11:23 +02:00
parent 8ea5df4fac
commit 7c7c5b2415

View File

@ -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)