Mercurial > libavutil.hg
diff 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 |
line wrap: on
line diff
--- a/log.h Tue Sep 14 14:45:43 2010 +0000 +++ b/log.h Fri Sep 24 15:37:01 2010 +0000 @@ -135,4 +135,15 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); const char* av_default_item_name(void* ctx); +/** + * Skip repeated messages, this requires the user app to use av_log() instead of + * (f)printf as the 2 would otherwise interfere and lead to + * "Last message repeated x times" messages below (f)printf messages with some + * bad luck. + * Also to receive the last, "last repeated" line if any, the user app must + * call av_log(NULL, AV_LOG_QUIET, ""); at the end + */ +#define AV_LOG_SKIP_REPEATED 1 +void av_log_set_flags(int arg); + #endif /* AVUTIL_LOG_H */
