[farsight2/master] Remove useless check to not re-init debug categories

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:44 PST 2008


---
 gst-libs/gst/farsight/fs-base-conference.c        |    5 ++---
 transmitters/multicast/fs-multicast-transmitter.c |    7 +++----
 transmitters/rawudp/fs-rawudp-transmitter.c       |    7 +++----
 3 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-base-conference.c b/gst-libs/gst/farsight/fs-base-conference.c
index e80b9dc..57ab143 100644
--- a/gst-libs/gst/farsight/fs-base-conference.c
+++ b/gst-libs/gst/farsight/fs-base-conference.c
@@ -89,9 +89,8 @@ void fs_base_conference_error (GObject *signal_src, GObject *error_src,
 void
 fs_base_conference_init_debug (void)
 {
-  if (!fs_base_conference_debug)
-    GST_DEBUG_CATEGORY_INIT (fs_base_conference_debug, "fsbaseconference", 0,
-        "farsight base conference library");
+  GST_DEBUG_CATEGORY_INIT (fs_base_conference_debug, "fsbaseconference", 0,
+      "farsight base conference library");
 }
 
 static void
diff --git a/transmitters/multicast/fs-multicast-transmitter.c b/transmitters/multicast/fs-multicast-transmitter.c
index 025804f..9d447e9 100644
--- a/transmitters/multicast/fs-multicast-transmitter.c
+++ b/transmitters/multicast/fs-multicast-transmitter.c
@@ -151,10 +151,9 @@ fs_multicast_transmitter_register_type (FsPlugin *module)
     (GInstanceInitFunc) fs_multicast_transmitter_init
   };
 
-  if (fs_multicast_transmitter_debug == NULL)
-    GST_DEBUG_CATEGORY_INIT (fs_multicast_transmitter_debug,
-        "fsmulticasttransmitter", 0,
-        "Farsight multicast UDP transmitter");
+  GST_DEBUG_CATEGORY_INIT (fs_multicast_transmitter_debug,
+      "fsmulticasttransmitter", 0,
+      "Farsight multicast UDP transmitter");
 
   fs_multicast_stream_transmitter_register_type (module);
 
diff --git a/transmitters/rawudp/fs-rawudp-transmitter.c b/transmitters/rawudp/fs-rawudp-transmitter.c
index 9eeaa12..e1b6f7b 100644
--- a/transmitters/rawudp/fs-rawudp-transmitter.c
+++ b/transmitters/rawudp/fs-rawudp-transmitter.c
@@ -154,10 +154,9 @@ fs_rawudp_transmitter_register_type (FsPlugin *module)
     (GInstanceInitFunc) fs_rawudp_transmitter_init
   };
 
-  if (fs_rawudp_transmitter_debug == NULL)
-    GST_DEBUG_CATEGORY_INIT (fs_rawudp_transmitter_debug,
-        "fsrawudptransmitter", 0,
-        "Farsight raw UDP transmitter");
+  GST_DEBUG_CATEGORY_INIT (fs_rawudp_transmitter_debug,
+      "fsrawudptransmitter", 0,
+      "Farsight raw UDP transmitter");
 
   fs_rawudp_stream_transmitter_register_type (module);
 
-- 
1.5.6.5




More information about the farsight-commits mailing list