From 2758a734a26830fdabda543bb969a2d6835ba9f8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 22:21:30 +0100 Subject: input/Curl: remove redundant attribute "url" Use the "url" attribute from the base class instead. --- src/input/CurlInputPlugin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/input') diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index f3a5c87d2..8ca05d24f 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -85,7 +85,7 @@ struct input_curl { /* some buffers which were passed to libcurl, which we have too free */ - char *url, *range; + char *range; struct curl_slist *request_headers; /** the curl handles */ @@ -743,7 +743,6 @@ input_curl_free(struct input_curl *c) if (c->postponed_error != NULL) g_error_free(c->postponed_error); - g_free(c->url); input_stream_deinit(&c->base); g_free(c); } @@ -1104,7 +1103,7 @@ input_curl_easy_init(struct input_curl *c, GError **error_r) g_free(proxy_auth_str); } - code = curl_easy_setopt(c->easy, CURLOPT_URL, c->url); + code = curl_easy_setopt(c->easy, CURLOPT_URL, c->base.uri); if (code != CURLE_OK) { g_set_error(error_r, curl_quark(), code, "curl_easy_setopt() failed: %s", @@ -1244,7 +1243,6 @@ input_curl_open(const char *url, GMutex *mutex, GCond *cond, input_stream_init(&c->base, &input_plugin_curl, url, mutex, cond); - c->url = g_strdup(url); c->buffers = g_queue_new(); icy_clear(&c->icy_metadata); -- cgit v1.2.3