diff --git a/src/midi/fluid_midi.c b/src/midi/fluid_midi.c index eb84ded8e..5d5e517de 100644 --- a/src/midi/fluid_midi.c +++ b/src/midi/fluid_midi.c @@ -126,7 +126,7 @@ delete_fluid_midi_file (fluid_midi_file *mf) /* * Gets the next byte in a MIDI file, taking into account previous running status. * - * returns FLUID_FAILED if EOF or read error + * returns -1 if EOF or read error */ int fluid_midi_file_getc (fluid_midi_file *mf) @@ -138,7 +138,7 @@ fluid_midi_file_getc (fluid_midi_file *mf) } else { if (mf->buf_pos >= mf->buf_len) { mf->eof = TRUE; - return FLUID_FAILED; + return -1; } c = mf->buffer[mf->buf_pos++]; mf->trackpos++;