decoder/fluidsynth: check if file is really a MIDI

Use fluid_is_midifile() to verify the file format.
This commit is contained in:
Max Kellermann 2012-08-15 00:35:56 +02:00
parent e291f3d257
commit c8ec85d649
2 changed files with 2 additions and 4 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ ver 0.17.2 (2012/??/??)
- fix crash in local file check
* decoder:
- fluidsynth: remove throttle (requires libfluidsynth 1.1)
- fluidsynth: check MIDI file format while scanning
* output:
- httpd: use monotonic clock, avoid hiccups after system clock adjustment
- httpd: fix throttling bug after resuming playback

View File

@ -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[] = {