aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/plugins/HttpdInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-28 12:24:48 +0100
committerMax Kellermann <max@duempel.org>2014-01-28 12:37:58 +0100
commitc4403c523f3b5514be499ff20887ec340f2272e9 (patch)
treecee7034796c386517f54ab2b61e762939c458f6f /src/output/plugins/HttpdInternal.hxx
parent07b89b2bad7543fa07347ffdccc71d4899dd2b02 (diff)
downloadmpd-c4403c523f3b5514be499ff20887ec340f2272e9.tar.gz
mpd-c4403c523f3b5514be499ff20887ec340f2272e9.tar.xz
mpd-c4403c523f3b5514be499ff20887ec340f2272e9.zip
AudioOutput: add constructor and destructor
Diffstat (limited to 'src/output/plugins/HttpdInternal.hxx')
-rw-r--r--src/output/plugins/HttpdInternal.hxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/output/plugins/HttpdInternal.hxx b/src/output/plugins/HttpdInternal.hxx
index ad728949f..a4c0477f0 100644
--- a/src/output/plugins/HttpdInternal.hxx
+++ b/src/output/plugins/HttpdInternal.hxx
@@ -169,10 +169,6 @@ public:
bool Init(const config_param &param, Error &error);
- void Finish() {
- ao_base_finish(&base);
- }
-
bool Configure(const config_param &param, Error &error);
AudioOutput *InitAndConfigure(const config_param &param,
@@ -180,10 +176,8 @@ public:
if (!Init(param, error))
return nullptr;
- if (!Configure(param, error)) {
- Finish();
+ if (!Configure(param, error))
return nullptr;
- }
return &base;
}