Blob Blame History Raw
diff -Nur audacious-plugins-fedora-2.1-orig/src/icecast/icecast.c audacious-plugins-fedora-2.1-icecast/src/icecast/icecast.c
--- audacious-plugins-fedora-2.1-orig/src/icecast/icecast.c	2009-07-07 00:40:36.000000000 +0200
+++ audacious-plugins-fedora-2.1-icecast/src/icecast/icecast.c	2009-11-21 22:10:03.314818476 +0100
@@ -87,6 +87,7 @@
 static gchar *stream_description = NULL;
 
 static gboolean ep_playing = FALSE;
+static gboolean init_end = FALSE;
 
 VFSFile *output_file = NULL;
 guint64 written = 0;
@@ -251,6 +252,7 @@
 
     if (ep_playing == TRUE)
         return 0;
+    init_end = FALSE;
 
     if (buffersize != buffersize_new)
     {
@@ -379,6 +381,7 @@
         }
     }
 
+    init_end = TRUE;
     convert_init(fmt, plugin->format_required, nch);
 
     rv = (plugin->open)();
@@ -399,6 +402,9 @@
 {
     if (ice_tid)
         g_source_remove(ice_tid);
+    if (!init_end) {
+        return length;
+    }
 
     if (!shout)
     {
@@ -609,6 +615,7 @@
         plugin_new = plugin;
 
         configure_win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+        gtk_window_set_type_hint(GTK_WINDOW(configure_win), GDK_WINDOW_TYPE_HINT_DIALOG);
 
         gtk_signal_connect(GTK_OBJECT(configure_win), "destroy",
                            GTK_SIGNAL_FUNC(configure_destroy), NULL);