[empathy: 6/23] audio-src: add the source name to the microphone info struct



commit 77712e75df674fb1f6fb58bd92a26ce75cf41787
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Tue Jul 26 17:45:50 2011 +0100

    audio-src: add the source name to the microphone info struct
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

 src/empathy-audio-src.c |    2 ++
 src/empathy-audio-src.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c
index df346ea..086b0a1 100644
--- a/src/empathy-audio-src.c
+++ b/src/empathy-audio-src.c
@@ -118,6 +118,7 @@ operation_get_microphones_free (gpointer data)
     {
       EmpathyAudioSrcMicrophone *mic = l->data;
 
+      g_free (mic->name);
       g_free (mic->description);
       g_slice_free (EmpathyAudioSrcMicrophone, mic);
     }
@@ -148,6 +149,7 @@ operation_get_microphones_cb (pa_context *context,
 
   mic = g_slice_new0 (EmpathyAudioSrcMicrophone);
   mic->index = info->index;
+  mic->name = g_strdup (info->name);
   mic->description = g_strdup (info->description);
 
   /* add it to the queue */
diff --git a/src/empathy-audio-src.h b/src/empathy-audio-src.h
index c588723..298d59c 100644
--- a/src/empathy-audio-src.h
+++ b/src/empathy-audio-src.h
@@ -65,6 +65,7 @@ gdouble empathy_audio_src_get_volume (EmpathyGstAudioSrc *src);
 typedef struct
 {
   guint index;
+  gchar *name;
   gchar *description;
 } EmpathyAudioSrcMicrophone;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]