rem: if (strncmp ("audio/", mimetype, 6) != 0 && strncmp ("video/", mimetype, 6) != 0 && strcmp ("application/octet-stream", mimetype) != 0 && strcmp ("application/x-ogg", mimetype) != 0 && strcmp ("application/ogg", mimetype) != 0 && strcmp ("application/x-flac", mimetype) != 0 && strcmp ("application/x-shockwave-flash", mimetype) != 0 && strcmp ("image/png", mimetype) != 0)
add: for (i = 0; i < G_N_ELEMENTS(dual_types); i++)
context: gtk_playlist_add_mrl (GtkPlaylist *playlist, const char *mrl,		const char *display_name){	const char *mimetype;	gpointer data;	gboolean retval = FALSE;	g_return_val_if_fail (mrl != NULL, FALSE);	mimetype = my_gnome_vfs_get_mime_type_with_data (mrl, &data);	if (mimetype == NULL)	{		D("adding '%s' with no mimetype", mrl);		g_free (data);		return gtk_playlist_add_one_mrl (playlist, mrl, display_name);	} else if (strcmp ("audio/x-mpegurl", mimetype) == 0) {		g_free (data);		return gtk_playlist_add_m3u (playlist, mrl);	} else if (strcmp ("audio/x-scpls", mimetype) == 0) {		g_free (data);		return gtk_playlist_add_pls (playlist, mrl);	} else if (strcmp ("audio/x-ms-asx", mimetype) == 0) {		return gtk_playlist_add_asx (playlist, mrl);	} else if (strcmp ("audio/x-real-audio", mimetype) == 0			|| strcmp ("audio/x-pn-realaudio", mimetype) == 0			|| strcmp ("application/vnd.rn-realmedia",				mimetype) == 0			|| strcmp ("audio/x-pn-realaudio-plugin",				mimetype) == 0) {		retval = gtk_playlist_add_ra (playlist, mrl, data);		g_free (data);		return retval;	} else if (strcmp ("video/x-ms-asf", mimetype) == 0) {		retval = gtk_playlist_add_asf (playlist, mrl, data);		g_free (data);		return retval;	} else if (strcmp ("application/x-smil", mimetype) == 0) {		g_free (data);		return gtk_playlist_add_smil (playlist, mrl);	} else if (strcmp ("x-directory/normal", mimetype) == 0) {		//FIXME Load all the files in the dir ?	} else if (strcmp ("application/x-gnome-app-info", mimetype) == 0) {		g_free (data);		return gtk_playlist_add_desktop (playlist, mrl);	} else if (strcmp ("text/plain", mimetype) == 0) {		g_free (data);		return gtk_playlist_add_nsv (playlist, mrl, display_name);	}	g_free (data);	if (strncmp ("audio/", mimetype, 6) != 0			&& strncmp ("video/", mimetype, 6) != 0			&& strcmp ("application/octet-stream", mimetype) != 0			&& strcmp ("application/x-ogg", mimetype) != 0			&& strcmp ("application/ogg", mimetype) != 0			&& strcmp ("application/x-flac", mimetype) != 0			&& strcmp ("application/x-shockwave-flash", mimetype) != 0			&& strcmp ("image/png", mimetype) != 0)	{		//FIXME error message		D("not adding '%s' with mimetype '%s'",				mrl, mimetype);		return FALSE;	}	return gtk_playlist_add_one_mrl (playlist, mrl, display_name);}