# HG changeset patch # User Andrew O. Shadoura # Date 1218662417 -10800 # Node ID 23c437ada180172e56fd341cfc51143d8bfa0c1f # Parent 6c40707ce9d5a17c911bb32ad2f20c06e59e8b65 dereference pointer correctly diff -r 6c40707ce9d5 -r 23c437ada180 src/icecast/icecast.c --- 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); }