On 06/22/2013 10:57 AM, Luca Barbato wrote:
> +#if HAVE_SYSLOG_H
> +static void log_callback_syslog(void *ptr, int level, const char *fmt,
> + va_list vl)
> +{
> + switch (level) {
> + default:
> + case AV_LOG_PANIC: level = LOG_ALERT; break;
> + case AV_LOG_FATAL: level = LOG_CRIT; break;
> + case AV_LOG_ERROR: level = LOG_ERR; break;
> + case AV_LOG_WARNING: level = LOG_WARNING; break;
> + case AV_LOG_INFO: level = LOG_NOTICE; break;
> + case AV_LOG_VERBOSE: level = LOG_INFO; break;
> + case AV_LOG_DEBUG: level = LOG_DEBUG; break;
> + }
> +
> + vsyslog(level, fmt, vl);
> +}
> +#endif
In theory, can't actual Libav log levels be in-between the pre-defined
levels? Also, there is AV_LOG_QUIET.
-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel