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/Bzip2ArchivePlugin.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 '')
-rw-r--r-- | src/archive/Bzip2ArchivePlugin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/archive/Bzip2ArchivePlugin.cxx b/src/archive/Bzip2ArchivePlugin.cxx index ba4d4028e..b344f1186 100644 --- a/src/archive/Bzip2ArchivePlugin.cxx +++ b/src/archive/Bzip2ArchivePlugin.cxx @@ -184,16 +184,15 @@ bz2_close(struct archive_file *file) Bzip2InputStream::Bzip2InputStream(Bzip2ArchiveFile &_context, const char *uri, Mutex &mutex, Cond &cond) - :archive(&_context), eof(false) + :base(bz2_inputplugin, uri, mutex, cond), + archive(&_context), eof(false) { - input_stream_init(&base, &bz2_inputplugin, uri, mutex, cond); refcount_inc(&archive->ref); } Bzip2InputStream::~Bzip2InputStream() { bz2_close(&archive->base); - input_stream_deinit(&base); } static struct input_stream * |