[FFmpeg-devel] [PATCH 2/2] avutil/log: document log callback thread saftey requirements

Paul B Mahol onemda at gmail.com
Thu Oct 17 10:56:18 CEST 2013


On 10/17/13, Michael Niedermayer <michaelni at gmx.at> wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  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.
> --
> 1.7.9.5

Once squashed with previous LGTM.


More information about the ffmpeg-devel mailing list