diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-25 22:58:13 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-01-25 23:02:02 +0100 |
commit | 611ce6e7569c4ca3a0163ad1485b1861e37b1290 (patch) | |
tree | 12b7b0071678a4854cd3fed48a53124666661eb2 /src/input/plugins/NfsInputPlugin.cxx | |
parent | 4140e9b8573aae1bf9a8cb4fd8cf3f21e6eca42a (diff) |
lib/nfs/{FileReader,Glue}: pass EventLoop&
Eliminate dependency on io_thread_get().
Diffstat (limited to 'src/input/plugins/NfsInputPlugin.cxx')
-rw-r--r-- | src/input/plugins/NfsInputPlugin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/plugins/NfsInputPlugin.cxx b/src/input/plugins/NfsInputPlugin.cxx index 470cf0282..3d7ea8e47 100644 --- a/src/input/plugins/NfsInputPlugin.cxx +++ b/src/input/plugins/NfsInputPlugin.cxx @@ -24,6 +24,7 @@ #include "lib/nfs/Glue.hxx" #include "lib/nfs/FileReader.hxx" #include "util/StringCompare.hxx" +#include "IOThread.hxx" #include <string.h> @@ -49,6 +50,7 @@ public: :AsyncInputStream(_uri, _mutex, _cond, NFS_MAX_BUFFERED, NFS_RESUME_AT), + NfsFileReader(io_thread_get()), reconnect_on_resume(false), reconnecting(false) {} virtual ~NfsInputStream() { @@ -206,7 +208,7 @@ NfsInputStream::OnNfsFileError(std::exception_ptr &&e) static void input_nfs_init(const ConfigBlock &) { - nfs_init(); + nfs_init(io_thread_get()); } static void |