avutil/log: Add av_log_once() for printing a message just once with a high log level

Compared to ad-hoc if(printed) ... code this allows the user to disable
it by adjusting the log level

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2020-01-16 16:34:07 +01:00
parent f15007afa9
commit 3182114f88
4 changed files with 34 additions and 1 deletions
+3
View File
@@ -15,6 +15,9 @@ libavutil: 2017-10-21
API changes, most recent first:
2020-02-12 - xxxxxxxxxx - lavu 56.40.100 - log.h
Add av_log_once().
2020-02-04 - xxxxxxxxxx - lavu 56.39.100 - hwcontext.h
Add AV_PIX_FMT_VULKAN
Add AV_HWDEVICE_TYPE_VULKAN and implementation.