]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
remove some debugging code from delay().
authorMike Brady <mikebrady@eircom.net>
Fri, 4 Jan 2019 17:26:00 +0000 (17:26 +0000)
committerMike Brady <mikebrady@eircom.net>
Fri, 4 Jan 2019 17:26:00 +0000 (17:26 +0000)
audio_alsa.c

index f239d63be6f23df69a570d348ab988fdc92a1a86..0372dc536cd72d2d1d6fc21bb16183fce6902270 100644 (file)
@@ -1093,12 +1093,6 @@ int delay(long *the_delay) {
 
     ret = delay_and_status(&state, &my_delay);
 
-    ret = 0;
-
-    if ((ret == 0) && (state != SND_PCM_STATE_RUNNING) && (state != SND_PCM_STATE_DRAINING) &&
-        (state != SND_PCM_STATE_PREPARED))
-      ret = sps_extra_code_output_state_cannot_make_ready;
-
     debug_mutex_unlock(&alsa_mutex, 0);
     pthread_cleanup_pop(0);
     pthread_setcancelstate(oldState, NULL);