# HG changeset patch # User Andrew O. Shadoura # Date 1218578485 -10800 # Node ID 6a6f27de82aa97e2d3b7459b731a7c9657004ef0 # Parent aa6acdb93c1e771b28056893dddc92b2d8da6e8c# Parent c27da2c06805b6325dabb32f0182e1fd83a9ba5b Automated merge with ssh://chrome@hg.atheme.org//hg/audacious-plugins diff -r c27da2c06805 -r 6a6f27de82aa src/icecast/icecast.c --- a/src/icecast/icecast.c Tue Aug 12 23:49:32 2008 +0200 +++ b/src/icecast/icecast.c Wed Aug 13 01:01:25 2008 +0300 @@ -151,7 +151,7 @@ static void ice_init(void) { ConfigDb *db; - g_debug("ICE_INIT"); + /*g_debug("ICE_INIT");*/ shout_init(); g_message("Using libshout %s", shout_version(NULL, NULL, NULL)); @@ -330,7 +330,7 @@ rv = (plugin.open)(); - g_debug("ICE_OPEN"); + /*g_debug("ICE_OPEN");*/ return rv; } @@ -349,28 +349,28 @@ if (!length) return length; ret = shout_send(shout, ptr, length); shout_sync(shout); - g_debug("ice_write[%d:%d]", ret, length); + /*g_debug("ice_write[%d:%d]", ret, length);*/ return 0; } static gint ice_write_output(void *ptr, gint length) { if ((!shout) || (!length)) return 0; - g_debug("outputlength=%d, length=%d...", outputlength, length); + /*g_debug("outputlength=%d, length=%d...", outputlength, length);*/ if ((outputlength > bufferflush) || ((outputlength+length) > buffersize)) { - g_debug("flushing"); + /*g_debug("flushing");*/ outputlength = ice_real_write(outputbuffer, outputlength); } { if (length > buffersize) { - g_debug("data too long, flushing"); + /*g_debug("data too long, flushing");*/ ice_real_write(ptr, length); } else { - g_debug("adding"); + /*g_debug("adding");*/ memcpy(&(outputbuffer[outputlength]), ptr, length); outputlength += length; } @@ -390,7 +390,7 @@ } shout = NULL; ice_tid = 0; - g_debug("ICE_REAL_CLOSE"); + /*g_debug("ICE_REAL_CLOSE");*/ return FALSE; } @@ -400,7 +400,7 @@ if (ice_tid) g_source_remove(ice_tid); ice_tid = g_timeout_add_seconds(3, ice_real_close, NULL); - g_debug("ICE_CLOSE: starting timer"); + /*g_debug("ICE_CLOSE: starting timer");*/ } static void ice_flush(gint time)