aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/FileInputPlugin.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/FileInputPlugin.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 'src/input/FileInputPlugin.cxx')
-rw-r--r--src/input/FileInputPlugin.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/input/FileInputPlugin.cxx b/src/input/FileInputPlugin.cxx
index 7681ee0c9..2eecf32b6 100644
--- a/src/input/FileInputPlugin.cxx
+++ b/src/input/FileInputPlugin.cxx
@@ -42,10 +42,8 @@ struct FileInputStream {
FileInputStream(const char *path, int _fd, off_t size,
Mutex &mutex, Cond &cond)
- :fd(_fd) {
- input_stream_init(&base, &input_plugin_file, path,
- mutex, cond);
-
+ :base(input_plugin_file, path, mutex, cond),
+ fd(_fd) {
base.size = size;
base.seekable = true;
base.ready = true;
@@ -53,7 +51,6 @@ struct FileInputStream {
~FileInputStream() {
close(fd);
- input_stream_deinit(&base);
}
};