InputStream: remove attribute "plugin"

This commit is contained in:
Max Kellermann
2014-05-11 18:25:55 +02:00
parent d4b625b48e
commit fd1b04932a
16 changed files with 21 additions and 63 deletions

View File

@@ -32,18 +32,12 @@
class Cond;
class Error;
struct Tag;
struct InputPlugin;
class InputStream {
public:
typedef int64_t offset_type;
private:
/**
* the plugin which implements this input stream
*/
const InputPlugin &plugin;
/**
* The absolute URI which was used to open this stream.
*/
@@ -99,9 +93,8 @@ private:
std::string mime;
public:
InputStream(const InputPlugin &_plugin,
const char *_uri, Mutex &_mutex, Cond &_cond)
:plugin(_plugin), uri(_uri),
InputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
:uri(_uri),
mutex(_mutex), cond(_cond),
ready(false), seekable(false),
size(-1), offset(0) {
@@ -140,10 +133,6 @@ public:
Mutex &mutex, Cond &cond,
Error &error);
const InputPlugin &GetPlugin() const {
return plugin;
}
/**
* The absolute URI which was used to open this stream.
*