From: Mike Brady Date: Sun, 13 Aug 2017 09:34:38 +0000 (+0100) Subject: Remove a thread lock and unlock from the onmove callback procedure -- it was locking... X-Git-Tag: 3.1.1rc0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75b91495a1aa288121cbc740e00eb539ccff074c;p=thirdparty%2Fshairport-sync.git Remove a thread lock and unlock from the onmove callback procedure -- it was locking up on Linux --- diff --git a/audio_sndio.c b/audio_sndio.c index 8d2ba7d2..0ba54aca 100644 --- a/audio_sndio.c +++ b/audio_sndio.c @@ -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) {