[FFmpeg-cvslog] avutil/log: document log callback thread saftey requirements
Michael Niedermayer
git at videolan.org
Wed Oct 23 18:28:19 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 17 01:40:19 2013 +0200| [05eb0f125c709af1a100f4e649524e80743d1d40] | committer: Michael Niedermayer
avutil/log: document log callback thread saftey requirements
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05eb0f125c709af1a100f4e649524e80743d1d40
---
libavutil/log.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavutil/log.h b/libavutil/log.h
index d3935da..55459e8 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -240,6 +240,9 @@ void av_log_set_level(int level);
/**
* Set the logging callback
*
+ * @note The callback must be thread safe, even if the application does not use
+ * threads itself as some codecs are multithreaded.
+ *
* @see av_log_default_callback
*
* @param callback A logging function with a compatible signature.
More information about the ffmpeg-cvslog
mailing list