[FFmpeg-devel] [PATCH 2/3] avutil/log: add av_log_get_flags()

Michael Niedermayer michaelni at gmx.at
Thu Mar 20 03:57:58 CET 2014


TODO: update version

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavutil/log.c |    5 +++++
 libavutil/log.h |    1 +
 2 files changed, 6 insertions(+)

diff --git a/libavutil/log.c b/libavutil/log.c
index e40ffa4..9a1cae2 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -327,6 +327,11 @@ void av_log_set_flags(int arg)
     flags = arg;
 }
 
+int av_log_get_flags(void)
+{
+    return flags;
+}
+
 void av_log_set_callback(void (*callback)(void*, int, const char*, va_list))
 {
     av_log_callback = callback;
diff --git a/libavutil/log.h b/libavutil/log.h
index b8ea759..59c8724 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -318,6 +318,7 @@ void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl,
  */
 #define AV_LOG_ASYNC 0x1000
 void av_log_set_flags(int arg);
+int av_log_get_flags(void);
 
 /**
  * @}
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list