aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/CurlInputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-28 20:32:23 +0100
committerMax Kellermann <max@duempel.org>2013-01-28 23:29:43 +0100
commitdcf55c7e328578d435eb14277cb6ba9e072f7e9c (patch)
tree0488d2de5ecfd090cce2e00cfbc4cdcd342c8194 /src/input/CurlInputPlugin.cxx
parente565cd440497d3b693e281046af485c667491441 (diff)
downloadmpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.tar.gz
mpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.tar.xz
mpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.zip
InputStream: add constructor/destructor
Eliminate input_stream_init() and input_stream_deinit().
Diffstat (limited to '')
-rw-r--r--src/input/CurlInputPlugin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx
index 8ed25f9a4..0fbfa29d2 100644
--- a/src/input/CurlInputPlugin.cxx
+++ b/src/input/CurlInputPlugin.cxx
@@ -166,12 +166,12 @@ struct input_curl {
GError *postponed_error;
input_curl(const char *url, Mutex &mutex, Cond &cond)
- :range(nullptr), request_headers(nullptr),
+ :base(input_plugin_curl, url, mutex, cond),
+ range(nullptr), request_headers(nullptr),
paused(false),
meta_name(nullptr),
tag(nullptr),
postponed_error(nullptr) {
- input_stream_init(&base, &input_plugin_curl, url, mutex, cond);
}
~input_curl();
@@ -705,8 +705,6 @@ input_curl::~input_curl()
if (postponed_error != NULL)
g_error_free(postponed_error);
-
- input_stream_deinit(&base);
}
static bool