Mercurial > libavutil.hg
changeset 922:2acb0b1891c0 libavutil
av_default_item_name() so Simply AVClasses need 1 function less.
author | michael |
---|---|
date | Wed, 19 May 2010 22:45:04 +0000 |
parents | 45f0b4eda100 |
children | 13c95c3e8449 |
files | log.c log.h |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/log.c Sun May 16 07:56:26 2010 +0000 +++ b/log.c Wed May 19 22:45:04 2010 +0000 @@ -55,6 +55,10 @@ } } +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;
--- a/log.h Sun May 16 07:56:26 2010 +0000 +++ b/log.h Wed May 19 22:45:04 2010 +0000 @@ -125,5 +125,6 @@ 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 */