]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Ensure flush resets everything.
authorMike Brady <mikebrady@eircom.net>
Sun, 29 Jul 2018 07:35:06 +0000 (08:35 +0100)
committerMike Brady <mikebrady@eircom.net>
Sun, 29 Jul 2018 07:35:06 +0000 (08:35 +0100)
audio_alsa.c

index 556fd9579095e8cb4634ff56cb8362d1ae3d0474..cefd66657b20187c6ff58c8ad7670881c55a90ba 100644 (file)
@@ -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);