[Ffmpeg-cvslog] r7446 - in trunk/libavutil: log.c log.h
gpoirier
subversion
Sat Jan 13 18:10:34 CET 2007
Author: gpoirier
Date: Sat Jan 13 18:10:34 2007
New Revision: 7446
Modified:
trunk/libavutil/log.c
trunk/libavutil/log.h
Log:
Allow to uninstall a custom log callback
patch by Axel Holzinger % aholzinger A gmx P de %
original thread:
date: Jan 11, 2007 4:54 PM
subject: [Ffmpeg-devel] [PATCH] uninstall custom log callback
Modified: trunk/libavutil/log.c
==============================================================================
--- trunk/libavutil/log.c (original)
+++ trunk/libavutil/log.c Sat Jan 13 18:10:34 2007
@@ -28,7 +28,7 @@
int av_log_level = AV_LOG_INFO;
-static void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
+void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
{
static int print_prefix=1;
AVClass* avc= ptr ? *(AVClass**)ptr : NULL;
Modified: trunk/libavutil/log.h
==============================================================================
--- trunk/libavutil/log.h (original)
+++ trunk/libavutil/log.h Sat Jan 13 18:10:34 2007
@@ -55,6 +55,7 @@
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
More information about the ffmpeg-cvslog
mailing list