aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/ThreadInputStream.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-11 18:25:55 +0200
committerMax Kellermann <max@duempel.org>2014-05-11 18:25:55 +0200
commitfd1b04932a07e146a0a3c4ce52ace068a112587b (patch)
treefdc799083a93453b962e6bc9f8d9d95e624bd441 /src/input/ThreadInputStream.hxx
parentd4b625b48e6bbac61b4128aeeaf44911b2e3e03b (diff)
downloadmpd-fd1b04932a07e146a0a3c4ce52ace068a112587b.tar.gz
mpd-fd1b04932a07e146a0a3c4ce52ace068a112587b.tar.xz
mpd-fd1b04932a07e146a0a3c4ce52ace068a112587b.zip
InputStream: remove attribute "plugin"
Diffstat (limited to 'src/input/ThreadInputStream.hxx')
-rw-r--r--src/input/ThreadInputStream.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/input/ThreadInputStream.hxx b/src/input/ThreadInputStream.hxx
index 4d4ec3972..c6ac7669c 100644
--- a/src/input/ThreadInputStream.hxx
+++ b/src/input/ThreadInputStream.hxx
@@ -40,6 +40,8 @@ template<typename T> class CircularBuffer;
* This works only for "streams": unknown length, no seeking, no tags.
*/
class ThreadInputStream : public InputStream {
+ const char *const plugin;
+
Thread thread;
/**
@@ -65,10 +67,11 @@ class ThreadInputStream : public InputStream {
bool eof;
public:
- ThreadInputStream(const InputPlugin &_plugin,
+ ThreadInputStream(const char *_plugin,
const char *_uri, Mutex &_mutex, Cond &_cond,
size_t _buffer_size)
- :InputStream(_plugin, _uri, _mutex, _cond),
+ :InputStream(_uri, _mutex, _cond),
+ plugin(_plugin),
buffer_size(_buffer_size),
buffer(nullptr),
close(false), eof(false) {}