Mercurial > audlegacy-plugins
diff src/lastfm/lastfm.c @ 1150:3506c611a802 trunk
[svn] - fix registration of lastfm session ID
author | nenolod |
---|---|
date | Mon, 28 May 2007 23:29:02 -0700 |
parents | bca08b1c2d16 |
children | 1ba0d3500f3c |
line wrap: on
line diff
--- a/src/lastfm/lastfm.c Mon May 28 23:16:25 2007 -0700 +++ b/src/lastfm/lastfm.c Mon May 28 23:29:02 2007 -0700 @@ -38,13 +38,6 @@ return size * nmemb; } -int max(int a,int b) -{ - if(a>b) - return a; - return b; -} - gint get_data_from_url(gchar buf[4096], GString * res) { CURL *curl = curl_easy_init(); @@ -109,12 +102,13 @@ g_strfreev(split); g_string_erase(res, 0, -1); - return (gboolean) TRUE; if (mowgli_global_storage_get("lastfm_session_id")) mowgli_global_storage_free("lastfm_session_id"); mowgli_global_storage_put("lastfm_session_id", LastFMGlobalData->lastfm_session_id); + + return (gboolean) TRUE; } static gboolean lastfm_adjust(const gchar * url)