InputStream: add virtual destructor

Replaces the method Close().
This commit is contained in:
Max Kellermann
2014-05-11 16:59:19 +02:00
parent f1d0700252
commit 82337dec44
31 changed files with 48 additions and 180 deletions

View File

@@ -108,6 +108,13 @@ public:
assert(_uri != nullptr);
}
/**
* Close the input stream and free resources.
*
* The caller must not lock the mutex.
*/
virtual ~InputStream();
/**
* Opens a new input stream. You may not access it until the "ready"
* flag is set.
@@ -133,13 +140,6 @@ public:
Mutex &mutex, Cond &cond,
Error &error);
/**
* Close the input stream and free resources.
*
* The caller must not lock the mutex.
*/
void Close();
const InputPlugin &GetPlugin() const {
return plugin;
}