output/Filtered: eliminate FinishDestroy()
This is implicitly done by the destructor.
This commit is contained in:
@@ -377,7 +377,6 @@ AudioOutputControl::FinishDestroy() noexcept
|
|||||||
if (thread.IsDefined())
|
if (thread.IsDefined())
|
||||||
thread.Join();
|
thread.Join();
|
||||||
|
|
||||||
output->FinishDestroy();
|
|
||||||
delete output;
|
delete output;
|
||||||
output = nullptr;
|
output = nullptr;
|
||||||
}
|
}
|
||||||
|
@@ -142,7 +142,6 @@ public:
|
|||||||
const ConfigBlock &block);
|
const ConfigBlock &block);
|
||||||
|
|
||||||
void BeginDestroy() noexcept;
|
void BeginDestroy() noexcept;
|
||||||
void FinishDestroy() noexcept;
|
|
||||||
|
|
||||||
const char *GetName() const {
|
const char *GetName() const {
|
||||||
return name;
|
return name;
|
||||||
|
@@ -35,9 +35,3 @@ FilteredAudioOutput::BeginDestroy() noexcept
|
|||||||
if (mixer != nullptr)
|
if (mixer != nullptr)
|
||||||
mixer_auto_close(mixer);
|
mixer_auto_close(mixer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
FilteredAudioOutput::FinishDestroy() noexcept
|
|
||||||
{
|
|
||||||
output.reset();
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user