changeset 3168:7e58928783b3

alsa-ng: Set thread handles to NULL when threads exit.
author William Pitcock <nenolod@atheme.org>
date Fri, 15 May 2009 00:05:48 -0500
parents 9739ba93fd79
children 62bc6d9b6de0
files src/alsa-ng/alsa-core.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/alsa-ng/alsa-core.c	Fri May 15 00:05:17 2009 -0500
+++ b/src/alsa-ng/alsa-core.c	Fri May 15 00:05:48 2009 -0500
@@ -111,6 +111,7 @@
     snd_pcm_drain(pcm_handle);
     snd_pcm_close(pcm_handle);
     pcm_handle = NULL;
+    audio_thread = NULL;
     alsaplug_ringbuffer_destroy(&pcm_ringbuf);
 
     return NULL;