Browse Source

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

Originally committed as revision 7446 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Axel Holzinger Guillaume Poirier 19 years ago
parent
commit
411983c1f2
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      libavutil/log.c
  2. +1
    -0
      libavutil/log.h

+ 1
- 1
libavutil/log.c View File

@@ -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;


+ 1
- 0
libavutil/log.h View File

@@ -55,6 +55,7 @@ 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


Loading…
Cancel
Save