comparison log.h @ 1019:4a16166d580e libavutil

2nd try to fix av_log() repeated detection
author michael
date Fri, 24 Sep 2010 15:37:01 +0000
parents dd2093c239e4
children
comparison
equal deleted inserted replaced
1018:61cb1c0a6eb6 1019:4a16166d580e
133 void av_log_set_level(int); 133 void av_log_set_level(int);
134 void av_log_set_callback(void (*)(void*, int, const char*, va_list)); 134 void av_log_set_callback(void (*)(void*, int, const char*, va_list));
135 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); 135 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
136 const char* av_default_item_name(void* ctx); 136 const char* av_default_item_name(void* ctx);
137 137
138 /**
139 * Skip repeated messages, this requires the user app to use av_log() instead of
140 * (f)printf as the 2 would otherwise interfere and lead to
141 * "Last message repeated x times" messages below (f)printf messages with some
142 * bad luck.
143 * Also to receive the last, "last repeated" line if any, the user app must
144 * call av_log(NULL, AV_LOG_QUIET, ""); at the end
145 */
146 #define AV_LOG_SKIP_REPEATED 1
147 void av_log_set_flags(int arg);
148
138 #endif /* AVUTIL_LOG_H */ 149 #endif /* AVUTIL_LOG_H */