Browse Source

avutil/log: allow av_log_set_callback (NULL)

Idea-by: Don Moir <donmoir@comcast.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
7c7c5b2415
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavutil/log.c

+ 2
- 1
libavutil/log.c 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)


Loading…
Cancel
Save