From: Mike Brady Date: Sun, 29 Jul 2018 07:35:06 +0000 (+0100) Subject: Ensure flush resets everything. X-Git-Tag: 3.3RC0~286^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03f6d8133542933cd69849decadaa38a1dcc0d6;p=thirdparty%2Fshairport-sync.git Ensure flush resets everything. --- diff --git a/audio_alsa.c b/audio_alsa.c index 556fd957..cefd6665 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -949,7 +949,7 @@ static void flush(void) { // flush also closes the device if ((derr = snd_pcm_close(alsa_handle))) debug(1, "Error %d (\"%s\") closing the output device.", derr, snd_strerror(derr)); - + time_of_first_frame = 0; alsa_handle = NULL; } debug_mutex_unlock(&alsa_mutex, 3);