diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-14 21:52:28 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-05-14 21:52:28 +0200 |
commit | cab00d8a839d55fe70c6b02bf321989b17590c9c (patch) | |
tree | 8b6fcccde6f516b82b07fbfb7f070fc808837df9 | |
parent | 86f6ea961a4e4c340c77b3b4e6bf549d5948c86e (diff) |
fix deadlock in alsa_stop
-rw-r--r-- | plugins/alsa/alsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c index 77a7a42a..a9cfd0de 100644 --- a/plugins/alsa/alsa.c +++ b/plugins/alsa/alsa.c @@ -507,7 +507,9 @@ palsa_thread (void *context) { err = snd_pcm_writei (audio, buf, snd_pcm_bytes_to_frames(audio, bytes_to_write)); } else { + UNLOCK; usleep (10000); + LOCK continue; } |