]> git.0d.be Git - empathy.git/commitdiff
audio-src,mic-menu: use DEBUG macros
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 29 Jul 2011 10:09:15 +0000 (11:09 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 29 Jul 2011 10:09:15 +0000 (11:09 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
src/empathy-audio-src.c
src/empathy-mic-menu.c

index 5487fead368d8576598b4059cb1b14bdf56b1ee1..4c1072c4456c15f6402abd84640749a38551ccdb 100644 (file)
@@ -31,6 +31,9 @@
 
 #include "src-marshal.h"
 
+#define DEBUG_FLAG EMPATHY_DEBUG_VOIP
+#include <libempathy/empathy-debug.h>
+
 G_DEFINE_TYPE(EmpathyGstAudioSrc, empathy_audio_src, GST_TYPE_BIN)
 
 /* signal enum */
@@ -314,7 +317,7 @@ empathy_audio_src_pa_subscribe_cb (pa_context *context,
     void *userdata)
 {
   if (!success)
-    g_debug ("Failed to subscribe to PulseAudio events");
+    DEBUG ("Failed to subscribe to PulseAudio events");
 }
 
 static void
index 3ebd31c279d680743e449ae1f5a69ad255b18be1..dc3d0f006429783b9498ba6e50001cfce1e79c5e 100644 (file)
@@ -25,6 +25,9 @@
 
 #include "empathy-mic-menu.h"
 
+#define DEBUG_FLAG EMPATHY_DEBUG_VOIP
+#include <libempathy/empathy-debug.h>
+
 struct _EmpathyMicMenuPrivate
 {
   /* Borrowed ref; the call window actually owns us. */
@@ -134,7 +137,7 @@ empathy_mic_menu_change_mic_cb (GObject *source_object,
 
   if (!empathy_audio_src_change_microphone_finish (audio, result, &error))
     {
-      g_debug ("Failed to change microphone: %s", error->message);
+      DEBUG ("Failed to change microphone: %s", error->message);
       g_clear_error (&error);
 
       /* We call update here because if this change operation failed
@@ -319,7 +322,7 @@ empathy_mic_menu_get_microphones_cb (GObject *source_object,
 
   if (error != NULL)
     {
-      g_debug ("Failed to get microphone list: %s", error->message);
+      DEBUG ("Failed to get microphone list: %s", error->message);
       g_clear_error (&error);
       return;
     }