mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
Revert "make fluid_log() thread safe"
This reverts commit d25cdae17c
.
Mistakenly committed too early on the wrong branch.
This commit is contained in:
parent
2b563071f6
commit
7517c17524
1 changed files with 9 additions and 9 deletions
|
@ -169,20 +169,20 @@ fluid_default_log_function(int level, const char *message, void *data)
|
|||
int
|
||||
fluid_log(int level, const char *fmt, ...)
|
||||
{
|
||||
fluid_log_function_t fun = NULL;
|
||||
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
FLUID_VSNPRINTF(fluid_errbuf, sizeof(fluid_errbuf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
if((level >= 0) && (level < LAST_LOG_LEVEL))
|
||||
{
|
||||
fluid_log_function_t fun = fluid_log_function[level];
|
||||
fun = fluid_log_function[level];
|
||||
|
||||
if(fun != NULL)
|
||||
{
|
||||
char errbuf[1024];
|
||||
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
FLUID_VSNPRINTF(errbuf, sizeof(errbuf), fmt, args);
|
||||
va_end(args);
|
||||
|
||||
(*fun)(level, errbuf, fluid_log_user_data[level]);
|
||||
(*fun)(level, fluid_errbuf, fluid_log_user_data[level]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue