Mercurial > audlegacy-plugins
diff src/icecast/icecast.c @ 3046:75cd491339c9
ported icecast plugin,
fixed possibly uninitialized variable in cue plugin
author | Andrew O. Shadoura <bugzilla@tut.by> |
---|---|
date | Fri, 17 Apr 2009 16:11:16 +0300 |
parents | 947ac5c18ad3 |
children | ca7d5de41217 |
line wrap: on
line diff
--- 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)