diff options
author | Max Kellermann <max@duempel.org> | 2013-01-28 20:32:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-28 23:29:43 +0100 |
commit | dcf55c7e328578d435eb14277cb6ba9e072f7e9c (patch) | |
tree | 0488d2de5ecfd090cce2e00cfbc4cdcd342c8194 /src/archive/ZzipArchivePlugin.cxx | |
parent | e565cd440497d3b693e281046af485c667491441 (diff) | |
download | mpd-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 'src/archive/ZzipArchivePlugin.cxx')
-rw-r--r-- | src/archive/ZzipArchivePlugin.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/archive/ZzipArchivePlugin.cxx b/src/archive/ZzipArchivePlugin.cxx index 8c4b77987..dabdd41d9 100644 --- a/src/archive/ZzipArchivePlugin.cxx +++ b/src/archive/ZzipArchivePlugin.cxx @@ -142,10 +142,8 @@ struct ZzipInputStream { ZzipInputStream(ZzipArchiveFile &_archive, const char *uri, Mutex &mutex, Cond &cond, ZZIP_FILE *_file) - :archive(&_archive), file(_file) { - input_stream_init(&base, &zzip_input_plugin, uri, - mutex, cond); - + :base(zzip_input_plugin, uri, mutex, cond), + archive(&_archive), file(_file) { base.ready = true; //we are seekable (but its not recommendent to do so) base.seekable = true; @@ -160,7 +158,6 @@ struct ZzipInputStream { ~ZzipInputStream() { zzip_file_close(file); archive->Unref(); - input_stream_deinit(&base); } }; |