changeset 2911:23c437ada180

dereference pointer correctly
author Andrew O. Shadoura <bugzilla@tut.by>
date Thu, 14 Aug 2008 00:20:17 +0300
parents 6c40707ce9d5
children 8f0a8a0d71c5 082f79c0563d
files src/icecast/icecast.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/icecast/icecast.c	Wed Aug 13 21:58:46 2008 +0300
+++ b/src/icecast/icecast.c	Thu Aug 14 00:20:17 2008 +0300
@@ -144,9 +144,7 @@
 
 EffectPlugin *ice_eplist[] = { &ice_ep, NULL };
 
-/*SIMPLE_OUTPUT_PLUGIN(icecast, ice_oplist);*/
 DECLARE_PLUGIN(icecast, NULL, NULL, NULL, ice_oplist, ice_eplist, NULL, NULL, NULL, NULL)
-/*SIMPLE_EFFECT_PLUGIN(icecast, ice_eplist);*/
 
 static void set_plugin(void)
 {
@@ -387,7 +385,7 @@
 
     rv = (plugin.open)();
 
-    g_debug("ICE_OPEN");
+    g_debug("ICE_OPEN[%d:%d:%d]", fmt, rate, nch);
     return rv;
 }
 
@@ -413,7 +411,7 @@
     {
         int len;
         ep_playing = TRUE;
-        len = convert_process(d, length);
+        len = convert_process(*d, length);
         plugin.write(convert_output, length);
         ice_tid = g_timeout_add_seconds(ice_close_timeout, ice_real_close, NULL);            
     }