summaryrefslogtreecommitdiff
path: root/src/output/Finish.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-08-09 16:58:44 +0200
committerMax Kellermann <max@musicpd.org>2017-08-10 09:01:41 +0200
commit31bad5f7af6cb59a276319a9fc1bb9ceebdc79ff (patch)
treee703f0d6be9351b0c35f91c154dcf5b84248180c /src/output/Finish.cxx
parent1cf7f3d87c6b2668afc28caedd9efe0a242e98f4 (diff)
output/Interface: convert to abstract class
Yet another C-style vtable replaced with C++.
Diffstat (limited to 'src/output/Finish.cxx')
-rw-r--r--src/output/Finish.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/output/Finish.cxx b/src/output/Finish.cxx
index 9db4d50fe..9e1c4eb46 100644
--- a/src/output/Finish.cxx
+++ b/src/output/Finish.cxx
@@ -19,7 +19,7 @@
#include "config.h"
#include "Filtered.hxx"
-#include "OutputPlugin.hxx"
+#include "Interface.hxx"
#include "mixer/MixerControl.hxx"
#include "filter/FilterInternal.hxx"
@@ -31,8 +31,6 @@ FilteredAudioOutput::~FilteredAudioOutput()
delete prepared_replay_gain_filter;
delete prepared_other_replay_gain_filter;
delete prepared_filter;
-
- ao_plugin_finish(output);
}
void
@@ -45,5 +43,5 @@ FilteredAudioOutput::BeginDestroy() noexcept
void
FilteredAudioOutput::FinishDestroy() noexcept
{
- ao_plugin_finish(output);
+ output.reset();
}