diff options
author | Max Kellermann <max@duempel.org> | 2015-01-08 19:36:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-08 19:36:19 +0100 |
commit | ae4c189e191fd83ee1394f0a180e7ca9430e66c9 (patch) | |
tree | 15be9475ebefd2a948edb10efec4e88628fc4fdb /src/output/plugins/RecorderOutputPlugin.cxx | |
parent | 362a6e6d460a3b197db33f0f2f082e0015f23820 (diff) | |
download | mpd-ae4c189e191fd83ee1394f0a180e7ca9430e66c9.tar.gz mpd-ae4c189e191fd83ee1394f0a180e7ca9430e66c9.tar.xz mpd-ae4c189e191fd83ee1394f0a180e7ca9430e66c9.zip |
encoder/Interface: move functions into the struct
Diffstat (limited to '')
-rw-r--r-- | src/output/plugins/RecorderOutputPlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output/plugins/RecorderOutputPlugin.cxx b/src/output/plugins/RecorderOutputPlugin.cxx index fb73f7b6f..f6508e33c 100644 --- a/src/output/plugins/RecorderOutputPlugin.cxx +++ b/src/output/plugins/RecorderOutputPlugin.cxx @@ -64,7 +64,7 @@ class RecorderOutput { ~RecorderOutput() { if (encoder != nullptr) - encoder_finish(encoder); + encoder->Dispose(); } bool Initialize(const config_param ¶m, Error &error_r) { @@ -175,13 +175,13 @@ RecorderOutput::Open(AudioFormat &audio_format, Error &error) /* open the encoder */ - if (!encoder_open(encoder, audio_format, error)) { + if (!encoder->Open(audio_format, error)) { delete file; return false; } if (!EncoderToFile(error)) { - encoder_close(encoder); + encoder->Close(); delete file; return false; } @@ -199,7 +199,7 @@ RecorderOutput::Commit(Error &error) /* now really close everything */ - encoder_close(encoder); + encoder->Close(); if (success && !file->Commit(error)) success = false; |