From 6d3234279ae3d17b09a46890d9586f1b24f71694 Mon Sep 17 00:00:00 2001 From: Pedro Lopez-Cabanillas Date: Tue, 4 May 2010 10:21:54 +0000 Subject: [PATCH] Patch by nshepperd, ticket #78. Segmentation fault in non-interactive mode. --- fluidsynth/src/fluid_midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluidsynth/src/fluid_midi.c b/fluidsynth/src/fluid_midi.c index 22112c14..479cda92 100644 --- a/fluidsynth/src/fluid_midi.c +++ b/fluidsynth/src/fluid_midi.c @@ -1489,7 +1489,7 @@ int fluid_player_join(fluid_player_t* player) return fluid_timer_join(player->system_timer); } else if (player->sample_timer) { /* Busy-wait loop, since there's no thread to wait for... */ - while (player->status == FLUID_PLAYER_PLAYING) { + while (player->status != FLUID_PLAYER_DONE) { #if defined(WIN32) Sleep(10); #else