Mercurial > audlegacy-plugins
changeset 3167:9739ba93fd79
alsa-ng: Don't try to join threads that have already exited.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 15 May 2009 00:05:17 -0500 |
parents | 8cbf077ba5d0 |
children | 7e58928783b3 |
files | src/alsa-ng/alsa-core.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alsa-ng/alsa-core.c Fri May 15 00:02:47 2009 -0500 +++ b/src/alsa-ng/alsa-core.c Fri May 15 00:05:17 2009 -0500 @@ -186,9 +186,10 @@ g_mutex_unlock(pcm_state_mutex); g_cond_broadcast(pcm_state_cond); - g_thread_join(audio_thread); + if (audio_thread != NULL) + g_thread_join(audio_thread); + audio_thread = NULL; - wr_total = 0; wr_hwframes = 0; bps = 0;