]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Fixed error in mutex
authorc vw <dl1ycf@darc.de>
Fri, 28 May 2021 14:59:17 +0000 (16:59 +0200)
committerc vw <dl1ycf@darc.de>
Fri, 28 May 2021 14:59:17 +0000 (16:59 +0200)
audio.c

diff --git a/audio.c b/audio.c
index 7c54ed8e7b63c630052a06b80926627184a1869a..5ed075506c62b7c5be5ad4e7f6b4e3713ebfb66e 100644 (file)
--- a/audio.c
+++ b/audio.c
@@ -288,7 +288,6 @@ g_print("audio_close_input: wait for thread to complete\n");
     g_thread_join(mic_read_thread_id);
     mic_read_thread_id=NULL;
   }
-  g_mutex_lock(&audio_mutex);
   if(record_handle!=NULL) {
 g_print("audio_close_input: snd_pcm_close\n");
     snd_pcm_close (record_handle);