From a309073bf44e58868e4124900ddcecc2aefbdf3b Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Wed, 12 Dec 2007 21:48:50 +0000 Subject: use av_log_get/set_level() Originally committed as revision 11209 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/log.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libavutil/log.h') diff --git a/libavutil/log.h b/libavutil/log.h index 243037239d..5d18197efb 100644 --- a/libavutil/log.h +++ b/libavutil/log.h @@ -81,7 +81,10 @@ struct AVCLASS { */ #define AV_LOG_DEBUG 48 #endif + +#if LIBAVUTIL_VERSION_INT < (50<<16) extern int av_log_level; +#endif /** * Send the specified message to the log if the level is less than or equal to @@ -103,14 +106,10 @@ extern void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__for extern void av_log(void*, int level, const char *fmt, ...); #endif -#if LIBAVUTIL_VERSION_INT < (50<<16) extern void av_vlog(void*, int level, const char *fmt, va_list); extern int av_log_get_level(void); extern void av_log_set_level(int); extern void av_log_set_callback(void (*)(void*, int, const char*, va_list)); extern void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); -#else -extern void (*av_vlog)(void*, int, const char*, va_list); -#endif #endif /* FFMPEG_LOG_H */ -- cgit v1.2.3