[FFmpeg-cvslog] r23198 - in trunk/libavutil: log.c log.h
michael
subversion
Thu May 20 00:45:05 CEST 2010
Author: michael
Date: Thu May 20 00:45:04 2010
New Revision: 23198
Log:
av_default_item_name() so Simply AVClasses need 1 function less.
Modified:
trunk/libavutil/log.c
trunk/libavutil/log.h
Modified: trunk/libavutil/log.c
==============================================================================
--- trunk/libavutil/log.c Wed May 19 22:48:29 2010 (r23197)
+++ trunk/libavutil/log.c Thu May 20 00:45:04 2010 (r23198)
@@ -55,6 +55,10 @@ static void colored_fputs(int color, con
}
}
+const char* av_default_item_name(void* ptr){
+ return (*(AVClass**)ptr)->class_name;
+}
+
void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
{
static int print_prefix=1;
Modified: trunk/libavutil/log.h
==============================================================================
--- trunk/libavutil/log.h Wed May 19 22:48:29 2010 (r23197)
+++ trunk/libavutil/log.h Thu May 20 00:45:04 2010 (r23198)
@@ -125,5 +125,6 @@ int av_log_get_level(void);
void av_log_set_level(int);
void av_log_set_callback(void (*)(void*, int, const char*, va_list));
void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
+const char* av_default_item_name(void* ctx);
#endif /* AVUTIL_LOG_H */
More information about the ffmpeg-cvslog
mailing list