[xiph-commits] r18690 - icecast/branches/ph3/icecast/src

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Mon Nov 12 13:51:54 PST 2012


Author: ph3-der-loewe
Date: 2012-11-12 13:51:54 -0800 (Mon, 12 Nov 2012)
New Revision: 18690

Modified:
   icecast/branches/ph3/icecast/src/plugins.c
   icecast/branches/ph3/icecast/src/roarapi.c
Log:
added some DEBUG*() calls as requested by win maintainer to track subsystem usage

Modified: icecast/branches/ph3/icecast/src/plugins.c
===================================================================
--- icecast/branches/ph3/icecast/src/plugins.c	2012-11-12 21:35:22 UTC (rev 18689)
+++ icecast/branches/ph3/icecast/src/plugins.c	2012-11-12 21:51:54 UTC (rev 18690)
@@ -41,6 +41,7 @@
 void plugins_initialize(void)
 {
 #ifdef HAVE_ROARAUDIO
+    DEBUG0("Plugin Interface is being initialized");
     roarapi_lock();
     container = roar_plugincontainer_new_simple(ICECAST_HOST_STRING, PACKAGE_VERSION);
     roar_plugincontainer_set_autoappsched(container, 1);
@@ -51,6 +52,7 @@
     roar_scheduler_source_add(sched, &source_timeout);
     roarapi_unlock();
     plugin_thread = thread_create("Plugin Thread", plugin_runner, NULL, 0);
+    DEBUG0("Plugin Interface is now initialized");
 #endif
 }
 
@@ -69,6 +71,7 @@
 void plugins_shutdown(void)
 {
 #ifdef HAVE_ROARAUDIO
+    DEBUG0("Plugin Interface is being shut down");
     roarapi_lock();
     plugins_shutdown_plugin_thread();
     roar_plugincontainer_unref(container);
@@ -76,6 +79,7 @@
     container = NULL;
     sched = NULL;
     roarapi_unlock();
+    DEBUG0("Plugin Interface is now shut down");
 #endif
 }
 

Modified: icecast/branches/ph3/icecast/src/roarapi.c
===================================================================
--- icecast/branches/ph3/icecast/src/roarapi.c	2012-11-12 21:35:22 UTC (rev 18689)
+++ icecast/branches/ph3/icecast/src/roarapi.c	2012-11-12 21:51:54 UTC (rev 18690)
@@ -17,17 +17,24 @@
 #endif
 
 #include "thread/thread.h"
+#include "logging.h"
 
+#define CATMODULE "roarapi" 
+
 static mutex_t _roarapi_mutex;
 
 void roarapi_initialize(void)
 {
+    DEBUG0("RoarAPI is being initialized");
     thread_mutex_create(&_roarapi_mutex);
+    DEBUG0("RoarAPI is now initialized");
 }
 
 void roarapi_shutdown(void)
 {
+    DEBUG0("RoarAPI is being shut down");
     thread_mutex_destroy(&_roarapi_mutex);
+    DEBUG0("RoarAPI is now shut down");
 }
 
 void roarapi_lock(void)



More information about the commits mailing list