--- orig/xmms-1.2.10/Input/vorbis/vorbis.c	2004-01-17 01:11:36.000000000 +0100
+++ /tmp/vorbis.c	2004-07-07 15:55:05.565115259 +0200
@@ -52,6 +52,8 @@
 #include "vorbis.h"
 #include "http.h"
 
+static int advertisement = 0;
+
 extern vorbis_config_t vorbis_cfg;
 
 static int vorbis_check_file(char *filename);
@@ -306,7 +308,8 @@
 		if (seekneeded != -1)
 			do_seek();
 	}
-	vorbis_ip.output->write_audio(pcmout, bytes);
+        if (!advertisement)
+            vorbis_ip.output->write_audio(pcmout, bytes);
 
 	return current_section;
 }
@@ -691,6 +694,11 @@
 	{
 		input->track_name = convert_from_utf8(vorbis_comment_query(comment, "title", 0));
 		input->performer = convert_from_utf8(vorbis_comment_query(comment, "artist", 0));
+                if (!strcmp(input->performer, "Virgin Radio")) {
+                    advertisement = 1;
+                } else {
+                    advertisement = 0;
+                }
 		input->album_name = convert_from_utf8(vorbis_comment_query(comment, "album", 0));
 		if ((tmp = vorbis_comment_query(comment, "tracknumber", 0)) != NULL)
 			input->track_number = atoi(tmp);

