[empathy: 96/99] Turn g_prints into DEBUGs



commit 54af9bea4d1e1f4e15207969f2ab89a012ad4d10
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Thu Jun 9 09:28:23 2011 +0100

    Turn g_prints into DEBUGs

 src/empathy-call-handler.c          |    8 ++++----
 src/empathy-call-window.c           |    6 +++---
 src/empathy-streamed-media-window.c |    2 +-
 src/empathy-video-src.c             |    5 ++++-
 4 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/src/empathy-call-handler.c b/src/empathy-call-handler.c
index 18d0d1f..1db5a34 100644
--- a/src/empathy-call-handler.c
+++ b/src/empathy-call-handler.c
@@ -656,7 +656,7 @@ empathy_call_handler_bus_message (EmpathyCallHandler *handler,
       FsCodec *codec;
       FsSession *session;
 
-      g_print ("empathy_call_handler_bus_message: farsight-send-codec-changed\n");
+      DEBUG ("farsight-send-codec-changed");
 
       val = gst_structure_get_value (s, "codec");
       codec = g_value_get_boxed (val);
@@ -673,7 +673,7 @@ empathy_call_handler_bus_message (EmpathyCallHandler *handler,
       GList *codecs;
       FsStream *stream;
 
-      g_print ("empathy_call_handler_bus_message: farsight-recv-codecs-changed\n");
+      DEBUG ("farsight-recv-codecs-changed");
 
       val = gst_structure_get_value (s, "codecs");
       codecs = g_value_get_boxed (val);
@@ -690,7 +690,7 @@ empathy_call_handler_bus_message (EmpathyCallHandler *handler,
       FsCandidate *remote_candidate, *local_candidate;
       FsStream *stream;
 
-      g_print ("empathy_call_handler_bus_message: farsight-new-active-candidate-pair\n");
+      DEBUG ("farsight-new-active-candidate-pair");
 
       val = gst_structure_get_value (s, "remote-candidate");
       remote_candidate = g_value_get_boxed (val);
@@ -821,7 +821,7 @@ on_tf_channel_content_removed_cb (TfChannel *tfchannel,
   GstPad *spad;
   gboolean retval;
 
-  g_print ("removing content\n");
+  DEBUG ("removing content");
 
   g_object_get (content, "media-type", &mtype,
     "sink-pad", &spad, NULL);
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 9d4fe52..3dbac9e 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1731,7 +1731,7 @@ empathy_call_window_conference_added_cb (EmpathyCallHandler *handler,
   FsElementAddedNotifier *notifier;
   GKeyFile *keyfile;
 
-  g_debug ("Conference added");
+  DEBUG ("Conference added");
 
   /* Add notifier to set the various element properties as needed */
   notifier = fs_element_added_notifier_new ();
@@ -1938,7 +1938,7 @@ empathy_call_window_sink_removed_cb (EmpathyCallHandler *handler,
 {
   EmpathyCallWindowPriv *priv = GET_PRIV (self);
 
-  g_print ("window: removing content\n");
+  DEBUG ("removing content");
 
   /*
    * This assumes that there is only one video stream per channel...
@@ -2449,7 +2449,7 @@ empathy_call_window_src_added_cb (EmpathyCallHandler *handler,
             }
           else
             {
-              g_debug ("Could not link real sink, linked fakesink instead");
+              DEBUG ("Could not link real sink, linked fakesink instead");
             }
           gst_object_unref (sinkpad);
         }
diff --git a/src/empathy-streamed-media-window.c b/src/empathy-streamed-media-window.c
index 3b49357..cb6f071 100644
--- a/src/empathy-streamed-media-window.c
+++ b/src/empathy-streamed-media-window.c
@@ -2503,7 +2503,7 @@ empathy_streamed_media_window_src_added_cb (EmpathyStreamedMediaHandler *handler
             }
           else
             {
-              g_debug ("Could not link real sink, linked fakesink instead");
+              DEBUG ("Could not link real sink, linked fakesink instead");
             }
           gst_object_unref (sinkpad);
         }
diff --git a/src/empathy-video-src.c b/src/empathy-video-src.c
index 5c865da..15d8f79 100644
--- a/src/empathy-video-src.c
+++ b/src/empathy-video-src.c
@@ -24,6 +24,9 @@
 
 #include <gst/interfaces/colorbalance.h>
 
+#define DEBUG_FLAG EMPATHY_DEBUG_VOIP
+#include <libempathy/empathy-debug.h>
+
 #include "empathy-video-src.h"
 
 G_DEFINE_TYPE(EmpathyGstVideoSrc, empathy_video_src, GST_TYPE_BIN)
@@ -143,7 +146,7 @@ empathy_video_src_init (EmpathyGstVideoSrc *obj)
     }
 
   str = gst_caps_to_string (caps);
-  g_debug ("Current video src caps are : %s", str);
+  DEBUG ("Current video src caps are : %s", str);
   g_free (str);
 
   if ((element = empathy_gst_add_to_bin (GST_BIN (obj),



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