aboutsummaryrefslogtreecommitdiff
path: root/src/input/FileInputPlugin.cxx
diff options
context:
space:
mode:
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 7681ee0c..2eecf32b 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);
}
};