]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Remove a thread lock and unlock from the onmove callback procedure -- it was locking...
authorMike Brady <mikebrady@eircom.net>
Sun, 13 Aug 2017 09:34:38 +0000 (10:34 +0100)
committerMike Brady <mikebrady@eircom.net>
Sun, 13 Aug 2017 09:34:38 +0000 (10:34 +0100)
audio_sndio.c

index 8d2ba7d2d22f50ca1463cd70eec76222378d4086..0ba54aca83f0eed16ca6d4d150f56c82c84c4cf8 100644 (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) {