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/input/RewindInputPlugin.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/input/RewindInputPlugin.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/input/RewindInputPlugin.cxx b/src/input/RewindInputPlugin.cxx index bc428e7ac..6c0093a38 100644 --- a/src/input/RewindInputPlugin.cxx +++ b/src/input/RewindInputPlugin.cxx @@ -61,15 +61,13 @@ struct RewindInputStream { char buffer[64 * 1024]; RewindInputStream(input_stream *_input) - :input(_input), tail(0) { - input_stream_init(&base, &rewind_input_plugin, input->uri, - *input->mutex, *input->cond); + :base(rewind_input_plugin, _input->uri, + *_input->mutex, *_input->cond), + input(_input), tail(0) { } ~RewindInputStream() { input_stream_close(input); - - input_stream_deinit(&base); } /** |