Index: metadata/rb-metadata-gst.c
===================================================================
RCS file: /cvs/gnome/rhythmbox/metadata/rb-metadata-gst.c,v
retrieving revision 1.43
diff -u -u -r1.43 rb-metadata-gst.c
--- metadata/rb-metadata-gst.c	10 Aug 2005 12:51:02 -0000	1.43
+++ metadata/rb-metadata-gst.c	19 Oct 2005 13:36:00 -0000
@@ -804,6 +804,14 @@
 	}
 
 	tagger = add_tagger_func (GST_BIN (pipeline), gnomevfssrc);
+	if (!tagger) {
+		g_set_error (error,
+			     RB_METADATA_ERROR,
+			     RB_METADATA_ERROR_UNSUPPORTED,
+			     "Unsupported file type: %s", md->priv->type);
+		goto out_error;
+	}
+
 	gst_tag_setter_set_merge_mode (GST_TAG_SETTER (tagger), GST_TAG_MERGE_REPLACE);
 	g_hash_table_foreach (md->priv->metadata, 
 			      (GHFunc) rb_metadata_gst_add_tag_data,
