InputStream: add constructor/destructor

Eliminate input_stream_init() and input_stream_deinit().
This commit is contained in:
Max Kellermann
2013-01-28 20:32:23 +01:00
parent e565cd4404
commit dcf55c7e32
14 changed files with 40 additions and 91 deletions

View File

@@ -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