send logPrint a pre-formatted string
This commit is contained in:
parent
c89bb8bc16
commit
817a760559
|
@ -56,7 +56,10 @@ void log_libav_callback( void *ptr, int level, const char *fmt, va_list vargs )
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( log ) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue