InputStream: add virtual destructor
Replaces the method Close().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user