[FFmpeg-cvslog] avutil/log: allow av_log_set_callback (NULL)
Michael Niedermayer
git at videolan.org
Thu May 10 19:15:08 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 10 19:11:23 2012 +0200| [7c7c5b24152d2d7e70a416019b7076f61487844e] | committer: Michael Niedermayer
avutil/log: allow av_log_set_callback (NULL)
Idea-by: Don Moir <donmoir at comcast.net>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7c7c5b24152d2d7e70a416019b7076f61487844e
---
libavutil/log.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavutil/log.c b/libavutil/log.c
index 5e2b14b..fbe9ea0 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list