From 0273cd44b0b50d5d320ce88cc1472e0d8ee8e529 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Jan 2013 19:14:40 +0100 Subject: input_stream: forward-declare the struct Hide the definition from C code, to prepare the transition to C++. --- src/playlist/LastFMPlaylistPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/playlist') diff --git a/src/playlist/LastFMPlaylistPlugin.cxx b/src/playlist/LastFMPlaylistPlugin.cxx index 67192574..36c89fea 100644 --- a/src/playlist/LastFMPlaylistPlugin.cxx +++ b/src/playlist/LastFMPlaylistPlugin.cxx @@ -242,8 +242,7 @@ lastfm_open_uri(const char *uri, GMutex *mutex, GCond *cond) /* last.fm does not send a MIME type, we have to fake it here :-( */ - g_free(playlist->is->mime); - playlist->is->mime = g_strdup("application/xspf+xml"); + input_stream_override_mime_type(playlist->is, "application/xspf+xml"); g_mutex_unlock(mutex); -- cgit v1.2.3