# HG changeset patch # User Andrew O. Shadoura # Date 1219182711 -10800 # Node ID c634799dd0bd003347804782b953ddb7e660c634 # Parent 9ec994a3bb59483459b721758fd2e377a318a1b1 no need for this check as init is called only once diff -r 9ec994a3bb59 -r c634799dd0bd src/icecast/icecast.c --- a/src/icecast/icecast.c Mon Aug 18 20:36:35 2008 +0200 +++ b/src/icecast/icecast.c Wed Aug 20 00:51:51 2008 +0300 @@ -85,7 +85,6 @@ static gchar *stream_genre = NULL; static gchar *stream_description = NULL; -static gboolean initialized = FALSE; static gboolean ep_playing = FALSE; VFSFile *output_file = NULL; @@ -164,7 +163,6 @@ static void ice_init(void) { ConfigDb *db; - if (initialized==TRUE) return; shout_init(); g_message("Using libshout %s", shout_version(NULL, NULL, NULL)); @@ -202,13 +200,10 @@ plugin = plugin_new; if (plugin.init) plugin.init(&ice_write_output); - - initialized = TRUE; } static void ice_cleanup(void) { - if (initialized==FALSE) return; if (shout) { shout_close(shout);