changeset 3015:02a62ac3d9c2 trunk

Handle metadata sources where there are no mimetype support yet implemented.
author William Pitcock <nenolod@atheme-project.org>
date Mon, 09 Jul 2007 05:17:21 -0500
parents 034d16dfdd44
children 80cf8f8b0651 6a9fdd5aee3a
files src/audacious/mime.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/mime.c	Mon Jul 09 05:13:50 2007 -0500
+++ b/src/audacious/mime.c	Mon Jul 09 05:17:21 2007 -0500
@@ -33,6 +33,9 @@
 
 InputPlugin *mime_get_plugin(const gchar *mimetype)
 {
+	if (mimetype == NULL)
+		return NULL;
+
 	if (mime_type_dict == NULL)
 		return NULL;