aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-07-20 11:55:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-07-20 11:55:08 +0000
commit918a45917c4cab7f830c05d728f257a7c0ce2f34 (patch)
treedb99fdd179f57b84744afd414521ca1cf9be466e /libavutil/log.c
parentccb159940b2c6daaf0c9bf8f0fb8c87317754e1c (diff)
downloadffmpeg-918a45917c4cab7f830c05d728f257a7c0ce2f34.tar.gz
removing redundant mess next time we break compatiility
Originally committed as revision 5804 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index 7786ea211d..f43593ad92 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -24,7 +24,7 @@
#include "avutil.h"
-static int av_log_level = AV_LOG_INFO;
+int av_log_level = AV_LOG_INFO;
static void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
{
@@ -43,7 +43,11 @@ static void av_log_default_callback(void* ptr, int level, const char* fmt, va_li
vfprintf(stderr, fmt, vl);
}
+#if LIBAVUTIL_VERSION_INT < (50<<16)
static void (*av_log_callback)(void*, int, const char*, va_list) = av_log_default_callback;
+#else
+void (*av_vlog)(void*, int, const char*, va_list) = av_log_default_callback;
+#endif
void av_log(void* avcl, int level, const char *fmt, ...)
{
@@ -53,6 +57,7 @@ void av_log(void* avcl, int level, const char *fmt, ...)
va_end(vl);
}
+#if LIBAVUTIL_VERSION_INT < (50<<16)
void av_vlog(void* avcl, int level, const char *fmt, va_list vl)
{
av_log_callback(avcl, level, fmt, vl);
@@ -72,3 +77,4 @@ void av_log_set_callback(void (*callback)(void*, int, const char*, va_list))
{
av_log_callback = callback;
}
+#endif