diff options
author | Max Kellermann <max@duempel.org> | 2014-01-28 12:24:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-28 12:37:58 +0100 |
commit | c4403c523f3b5514be499ff20887ec340f2272e9 (patch) | |
tree | cee7034796c386517f54ab2b61e762939c458f6f /src/output/plugins/HttpdInternal.hxx | |
parent | 07b89b2bad7543fa07347ffdccc71d4899dd2b02 (diff) | |
download | mpd-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.hxx | 8 |
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 ¶m, Error &error); - void Finish() { - ao_base_finish(&base); - } - bool Configure(const config_param ¶m, Error &error); AudioOutput *InitAndConfigure(const config_param ¶m, @@ -180,10 +176,8 @@ public: if (!Init(param, error)) return nullptr; - if (!Configure(param, error)) { - Finish(); + if (!Configure(param, error)) return nullptr; - } return &base; } |