output/Finish: fold internal function into FinishDestroy()
This commit is contained in:
parent
33f67d418f
commit
04738636ca
|
@ -23,8 +23,6 @@
|
|||
#include "mixer/MixerControl.hxx"
|
||||
#include "filter/FilterInternal.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
AudioOutput::~AudioOutput()
|
||||
{
|
||||
if (mixer != nullptr)
|
||||
|
@ -35,12 +33,6 @@ AudioOutput::~AudioOutput()
|
|||
delete prepared_filter;
|
||||
}
|
||||
|
||||
void
|
||||
audio_output_free(AudioOutput *ao) noexcept
|
||||
{
|
||||
ao_plugin_finish(ao);
|
||||
}
|
||||
|
||||
void
|
||||
AudioOutput::BeginDestroy() noexcept
|
||||
{
|
||||
|
@ -51,5 +43,5 @@ AudioOutput::BeginDestroy() noexcept
|
|||
void
|
||||
AudioOutput::FinishDestroy() noexcept
|
||||
{
|
||||
audio_output_free(this);
|
||||
ao_plugin_finish(this);
|
||||
}
|
||||
|
|
|
@ -187,7 +187,4 @@ audio_output_new(EventLoop &event_loop,
|
|||
const ConfigBlock &block,
|
||||
MixerListener &mixer_listener);
|
||||
|
||||
void
|
||||
audio_output_free(AudioOutput *ao) noexcept;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue