summaryrefslogtreecommitdiff
path: root/opl/opl.c
diff options
context:
space:
mode:
Diffstat (limited to 'opl/opl.c')
-rw-r--r--opl/opl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opl/opl.c b/opl/opl.c
index 9e674530..6d0e16db 100644
--- a/opl/opl.c
+++ b/opl/opl.c
@@ -415,9 +415,10 @@ static void DelayCallback(void *_delay_data)
SDL_LockMutex(delay_data->mutex);
delay_data->finished = 1;
- SDL_UnlockMutex(delay_data->mutex);
SDL_CondSignal(delay_data->cond);
+
+ SDL_UnlockMutex(delay_data->mutex);
}
void OPL_Delay(unsigned int ms)