Fix: [Fluidsynth] Crash when debug output enabled (#9446)
This commit is contained in:
@@ -65,7 +65,7 @@ const char *MusicDriver_FluidSynth::Start(const StringList ¶m)
|
|||||||
const char *sfont_name = GetDriverParam(param, "soundfont");
|
const char *sfont_name = GetDriverParam(param, "soundfont");
|
||||||
int sfont_id;
|
int sfont_id;
|
||||||
|
|
||||||
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name);
|
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name != nullptr ? sfont_name : "(null)");
|
||||||
|
|
||||||
/* Create the settings. */
|
/* Create the settings. */
|
||||||
_midi.settings = new_fluid_settings();
|
_midi.settings = new_fluid_settings();
|
||||||
|
Reference in New Issue
Block a user