aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/log.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-05-19 22:45:04 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-05-19 22:45:04 +0000
commit8d2a5139dac63b07f9ef4e1142ee4a2b68bb1fad (patch)
tree3893784fb8cf476bd9fce8ec3a94b200ee1cc776 /libavutil/log.c
parentd545fa56f12c345ae36cbca7e81632aaaccee240 (diff)
downloadffmpeg-8d2a5139dac63b07f9ef4e1142ee4a2b68bb1fad.tar.gz
av_default_item_name() so Simply AVClasses need 1 function less.
Originally committed as revision 23198 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/log.c')
-rw-r--r--libavutil/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/log.c b/libavutil/log.c
index 547287fc29..87a1edaffb 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -55,6 +55,10 @@ static void colored_fputs(int color, const char *str){
}
}
+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;