Ensure flush resets everything.

This commit is contained in:
Mike Brady
2018-07-29 08:35:06 +01:00
parent c85e7e05d1
commit c03f6d8133
+1 -1
View 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);