Remove a thread lock and unlock from the onmove callback procedure -- it was locking up on Linux

This commit is contained in:
Mike Brady
2017-08-13 10:34:38 +01:00
parent 0777a1f620
commit 75b91495a1
-2
View File
@@ -237,11 +237,9 @@ static void stop() {
}
static void onmove_cb(void *arg, int delta) {
pthread_mutex_lock(&sndio_mutex);
time_of_last_onmove_cb = get_absolute_time_in_fp();
at_least_one_onmove_cb_seen = 1;
played += delta;
pthread_mutex_unlock(&sndio_mutex);
}
static int delay(long *_delay) {