Commit c8ec85d6 authored by Max Kellermann's avatar Max Kellermann

decoder/fluidsynth: check if file is really a MIDI

Use fluid_is_midifile() to verify the file format.
parent e291f3d2
...@@ -3,6 +3,7 @@ ver 0.17.2 (2012/??/??) ...@@ -3,6 +3,7 @@ ver 0.17.2 (2012/??/??)
- fix crash in local file check - fix crash in local file check
* decoder: * decoder:
- fluidsynth: remove throttle (requires libfluidsynth 1.1) - fluidsynth: remove throttle (requires libfluidsynth 1.1)
- fluidsynth: check MIDI file format while scanning
* output: * output:
- httpd: use monotonic clock, avoid hiccups after system clock adjustment - httpd: use monotonic clock, avoid hiccups after system clock adjustment
- httpd: fix throttling bug after resuming playback - httpd: fix throttling bug after resuming playback
......
...@@ -208,10 +208,7 @@ fluidsynth_scan_file(const char *file, ...@@ -208,10 +208,7 @@ fluidsynth_scan_file(const char *file,
G_GNUC_UNUSED const struct tag_handler *handler, G_GNUC_UNUSED const struct tag_handler *handler,
G_GNUC_UNUSED void *handler_ctx) G_GNUC_UNUSED void *handler_ctx)
{ {
/* to be implemented */ return fluid_is_midifile(file);
(void)file;
return true;
} }
static const char *const fluidsynth_suffixes[] = { static const char *const fluidsynth_suffixes[] = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment