mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avutil/log: fix race between setting and using the log callback
Found-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9a63a45e48
commit
3ed65d98c6
@ -268,8 +268,9 @@ void av_log(void* avcl, int level, const char *fmt, ...)
|
||||
|
||||
void av_vlog(void* avcl, int level, const char *fmt, va_list vl)
|
||||
{
|
||||
if(av_log_callback)
|
||||
av_log_callback(avcl, level, fmt, vl);
|
||||
void (*log_callback)(void*, int, const char*, va_list) = av_log_callback;
|
||||
if (log_callback)
|
||||
log_callback(avcl, level, fmt, vl);
|
||||
}
|
||||
|
||||
int av_log_get_level(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user