diff options
author | Max Kellermann <max@duempel.org> | 2014-05-11 17:14:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-11 17:14:49 +0200 |
commit | d4b625b48e6bbac61b4128aeeaf44911b2e3e03b (patch) | |
tree | 67389c99a559c1b65bf6465c2361a4e3c01d4287 /src/input/plugins/MmsInputPlugin.cxx | |
parent | 82337dec44347017ca04fe975e85e6d9e4edb635 (diff) | |
download | mpd-d4b625b48e6bbac61b4128aeeaf44911b2e3e03b.tar.gz mpd-d4b625b48e6bbac61b4128aeeaf44911b2e3e03b.tar.xz mpd-d4b625b48e6bbac61b4128aeeaf44911b2e3e03b.zip |
InputStream: make various methods abstract
Replace InputPlugin attributes.
Diffstat (limited to '')
-rw-r--r-- | src/input/plugins/MmsInputPlugin.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/input/plugins/MmsInputPlugin.cxx b/src/input/plugins/MmsInputPlugin.cxx index a5d4bc09d..b1ff6a890 100644 --- a/src/input/plugins/MmsInputPlugin.cxx +++ b/src/input/plugins/MmsInputPlugin.cxx @@ -40,7 +40,8 @@ public: protected: virtual bool Open(gcc_unused Error &error) override; - virtual size_t Read(void *ptr, size_t size, Error &error) override; + virtual size_t ThreadRead(void *ptr, size_t size, + Error &error) override; virtual void Close() { mmsx_close(mms); @@ -89,7 +90,7 @@ input_mms_open(const char *url, } size_t -MmsInputStream::Read(void *ptr, size_t read_size, Error &error) +MmsInputStream::ThreadRead(void *ptr, size_t read_size, Error &error) { int nbytes = mmsx_read(nullptr, mms, (char *)ptr, read_size); if (nbytes <= 0) { @@ -106,11 +107,4 @@ const InputPlugin input_plugin_mms = { nullptr, nullptr, input_mms_open, - ThreadInputStream::Check, - nullptr, - nullptr, - ThreadInputStream::Available, - ThreadInputStream::Read, - ThreadInputStream::IsEOF, - nullptr, }; |