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