send logPrint a pre-formatted string

This commit is contained in:
Isaac Connor 2018-11-23 13:04:46 -05:00
parent 522ecaddd8
commit 1273cb863c
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ void log_libav_callback( void *ptr, int level, const char *fmt, va_list vargs )
}
if ( log ) {
log->logPrint(false, __FILE__, __LINE__, log_level, fmt, vargs);
char logString[8192];
vsnprintf(logString, sizeof(logString)-1, fmt, vargs);
log->logPrint(false, __FILE__, __LINE__, log_level, logString);
}
}