summaryrefslogtreecommitdiff
path: root/libavutil/log.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-09-24 15:37:01 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-09-24 15:37:01 +0000
commit1c1c80f0a3157278bf66da98e194729cdeea6631 (patch)
tree5632ed66669858c08d12f4175264d108a6a40cde /libavutil/log.h
parent7e117771cdf6ed76c90455ce289dbd027477b7fb (diff)
2nd try to fix av_log() repeated detection
Originally committed as revision 25174 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/log.h')
-rw-r--r--libavutil/log.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/log.h b/libavutil/log.h
index 831c26eae6..3b364bed24 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -135,4 +135,15 @@ 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);
+/**
+ * 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 */