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/RecorderOutputPlugin.cxx | |
parent | 07b89b2bad7543fa07347ffdccc71d4899dd2b02 (diff) | |
download | mpd-c4403c523f3b5514be499ff20887ec340f2272e9.tar.gz mpd-c4403c523f3b5514be499ff20887ec340f2272e9.tar.xz mpd-c4403c523f3b5514be499ff20887ec340f2272e9.zip |
AudioOutput: add constructor and destructor
Diffstat (limited to '')
-rw-r--r-- | src/output/plugins/RecorderOutputPlugin.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/output/plugins/RecorderOutputPlugin.cxx b/src/output/plugins/RecorderOutputPlugin.cxx index 632f2b718..ea208622a 100644 --- a/src/output/plugins/RecorderOutputPlugin.cxx +++ b/src/output/plugins/RecorderOutputPlugin.cxx @@ -62,10 +62,6 @@ struct RecorderOutput { error_r); } - void Deinitialize() { - ao_base_finish(&base); - } - bool Configure(const config_param ¶m, Error &error); bool WriteToFile(const void *data, size_t length, Error &error); @@ -118,7 +114,6 @@ recorder_output_init(const config_param ¶m, Error &error) } if (!recorder->Configure(param, error)) { - recorder->Deinitialize(); delete recorder; return nullptr; } @@ -132,7 +127,6 @@ recorder_output_finish(AudioOutput *ao) RecorderOutput *recorder = (RecorderOutput *)ao; encoder_finish(recorder->encoder); - recorder->Deinitialize(); delete recorder; } |