mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Ensure that we only try to dump font loaded by the defsfont loader
No the cleanest way to check which loader created the sfont, but as it is just a test tool, it might be good enough...
This commit is contained in:
parent
cc186512ed
commit
703f158c99
1 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,12 @@ int main(int argc, char **argv)
|
||||||
goto EXIT;
|
goto EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sfont->free != &fluid_defsfont_sfont_delete)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "This tool only supports SoundFonts loaded by the default loader\n");
|
||||||
|
goto EXIT;
|
||||||
|
}
|
||||||
|
|
||||||
defsfont = (fluid_defsfont_t *)fluid_sfont_get_data(sfont);
|
defsfont = (fluid_defsfont_t *)fluid_sfont_get_data(sfont);
|
||||||
if (defsfont == NULL)
|
if (defsfont == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue