changeset 2920:c634799dd0bd

no need for this check as init is called only once
author Andrew O. Shadoura <bugzilla@tut.by>
date Wed, 20 Aug 2008 00:51:51 +0300
parents 9ec994a3bb59
children 296fd6e83edb
files src/icecast/icecast.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);