Log: remove the obsolete printf-style functions
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
|
||||
#include "LogCallback.hxx"
|
||||
#include "Domain.hxx"
|
||||
#include "LogV.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/StringFormat.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include <libavutil/log.h>
|
||||
@@ -60,6 +60,10 @@ FfmpegLogCallback(void *ptr, int level, const char *fmt, std::va_list vl)
|
||||
ffmpeg_domain.GetName(),
|
||||
cls->item_name(ptr));
|
||||
const Domain d(domain);
|
||||
LogFormatV(FfmpegImportLogLevel(level), d, fmt, vl);
|
||||
|
||||
char msg[1024];
|
||||
vsnprintf(msg, sizeof(msg), fmt, vl);
|
||||
|
||||
Log(FfmpegImportLogLevel(level), d, msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user