print which pixel format cannot be deinterlaced

Needs adding log_msg_once variable arguments (printf-like).

+ print always error in deinterlace - if user explicitly wants
  deinterlace PP, maybe we should notify loudly
This commit is contained in:
Martin Pulec
2023-01-10 16:38:00 +01:00
parent e3574d3d66
commit 2afcdf3c1f
6 changed files with 16 additions and 9 deletions

View File

@@ -140,12 +140,15 @@ void log_msg(int level, const char *format, ...) {
}
void log_msg_once(int level, uint32_t id, const char *msg) {
void log_msg_once(int level, uint32_t id, const char *msg, ...) {
if (Logger::oneshot_messages.count(id) > 0 || log_level < level) {
return;
}
Logger::oneshot_messages.insert(id);
Logger(level).Get() << msg;
va_list aq;
va_start(aq, msg);
log_vprintf(level, msg, aq);
va_end(aq);
}
/**