decoder/fluidsynth: adapt to API change in version 2.0

Closes #360
This commit is contained in:
Max Kellermann
2018-10-23 18:44:28 +02:00
parent 61eff1cddf
commit 005e691339
2 changed files with 8 additions and 1 deletions

View File

@@ -64,7 +64,12 @@ fluidsynth_level_to_mpd(enum fluid_log_level level)
* logging library.
*/
static void
fluidsynth_mpd_log_function(int level, char *message, gcc_unused void *data)
fluidsynth_mpd_log_function(int level,
#if FLUIDSYNTH_VERSION_MAJOR >= 2
const
#endif
char *message,
void *)
{
Log(fluidsynth_domain,
fluidsynth_level_to_mpd(fluid_log_level(level)),