From: DL1YCF <dl1ycf@darc.de>
Date: Sun, 15 Dec 2019 20:27:32 +0000 (+0100)
Subject: Merge branch 'master' of https://github.com/g0orx/pihpsdr
X-Git-Url: https://git.rkrishnan.org/components/frontends/?a=commitdiff_plain;h=c51b41ff3ac5cf316fca881c34fc757e37a473d4;p=pihpsdr.git

Merge branch 'master' of https://github.com/g0orx/pihpsdr
---

c51b41ff3ac5cf316fca881c34fc757e37a473d4
diff --cc audio.c
index e332862,f60eb60..a55aad1
--- a/audio.c
+++ b/audio.c
@@@ -247,16 -242,9 +250,16 @@@ g_print("audio_open_input: mic_buffer: 
        break;
    }
  
 +g_print("audio_open_input: allocating ring buffer\n");
 +  mic_ring_buffer=(float *) g_new(float,MICRINGLEN);
 +  mic_ring_read_pt = mic_ring_write_pt=0;
 +  if (mic_ring_buffer == NULL) {
 +    return -1;
 +  }
 +
  g_print("audio_open_input: creating mic_read_thread\n");
    GError *error;
-   mic_read_thread_id = g_thread_try_new("local mic",mic_read_thread,NULL,&error);
+   mic_read_thread_id = g_thread_try_new("microphone",mic_read_thread,NULL,&error);
    if(!mic_read_thread_id ) {
      g_print("g_thread_new failed on mic_read_thread: %s\n",error->message);
    }