decoder/fluidsynth: check if file is really a MIDI
Use fluid_is_midifile() to verify the file format.
This commit is contained in:
@@ -208,10 +208,7 @@ fluidsynth_scan_file(const char *file,
|
||||
G_GNUC_UNUSED const struct tag_handler *handler,
|
||||
G_GNUC_UNUSED void *handler_ctx)
|
||||
{
|
||||
/* to be implemented */
|
||||
(void)file;
|
||||
|
||||
return true;
|
||||
return fluid_is_midifile(file);
|
||||
}
|
||||
|
||||
static const char *const fluidsynth_suffixes[] = {
|
||||
|
Reference in New Issue
Block a user