# HG changeset patch # User Andrew O. Shadoura # Date 1239973876 -10800 # Node ID 75cd491339c9f38fe425c363face9afa220cc1ac # Parent 85f036d3e6412da3509ced25950ce7d27553d847 ported icecast plugin, fixed possibly uninitialized variable in cue plugin diff -r 85f036d3e641 -r 75cd491339c9 src/cue/cuesheet.c --- a/src/cue/cuesheet.c Thu Apr 16 16:53:42 2009 -0500 +++ b/src/cue/cuesheet.c Fri Apr 17 16:11:16 2009 +0300 @@ -187,7 +187,7 @@ Tuple * get_song_tuple(gchar *uri) /* *.cue or *.cue?1- */ { - Tuple *phys_tuple, *out; + Tuple *phys_tuple = NULL, *out; ProbeResult *pr = NULL; InputPlugin *dec = NULL; gint track = 0; diff -r 85f036d3e641 -r 75cd491339c9 src/icecast/icecast.c --- a/src/icecast/icecast.c Thu Apr 16 16:53:42 2009 -0500 +++ b/src/icecast/icecast.c Fri Apr 17 16:11:16 2009 +0300 @@ -95,7 +95,7 @@ static shout_t *shout = NULL; static gboolean paused = FALSE; -static void ice_init(void); +static OutputPluginInitStatus ice_init(void); static void ice_cleanup(void); static void ice_about(void); static gint ice_open(AFormat fmt, gint rate, gint nch); @@ -115,6 +115,7 @@ OutputPlugin ice_op = { .description = "Icecast Plugin (output)", + .probe_priority = 0, .init = ice_init, .cleanup = ice_cleanup, .about = ice_about, @@ -161,7 +162,7 @@ #endif } -static void ice_init(void) +static OutputPluginInitStatus ice_init(void) { ConfigDb *db; shout_init(); @@ -201,6 +202,8 @@ plugin = plugin_new; if (plugin.init) plugin.init(&ice_write_output); + + return OUTPUT_PLUGIN_INIT_NO_DEVICES; } static void ice_cleanup(void)