aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-08 19:36:19 +0100
committerMax Kellermann <max@duempel.org>2015-01-08 19:36:19 +0100
commitae4c189e191fd83ee1394f0a180e7ca9430e66c9 (patch)
tree15be9475ebefd2a948edb10efec4e88628fc4fdb /test
parent362a6e6d460a3b197db33f0f2f082e0015f23820 (diff)
downloadmpd-ae4c189e191fd83ee1394f0a180e7ca9430e66c9.tar.gz
mpd-ae4c189e191fd83ee1394f0a180e7ca9430e66c9.tar.xz
mpd-ae4c189e191fd83ee1394f0a180e7ca9430e66c9.zip
encoder/Interface: move functions into the struct
Diffstat (limited to 'test')
-rw-r--r--test/run_encoder.cxx6
-rw-r--r--test/test_vorbis_encoder.cxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/test/run_encoder.cxx b/test/run_encoder.cxx
index c500b8e1f..42d934dbd 100644
--- a/test/run_encoder.cxx
+++ b/test/run_encoder.cxx
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
}
}
- if (!encoder_open(encoder, audio_format, error)) {
+ if (!encoder->Open(audio_format, error)) {
LogError(error, "Failed to open encoder");
return EXIT_FAILURE;
}
@@ -116,6 +116,6 @@ int main(int argc, char **argv)
encoder_to_stdout(*encoder);
- encoder_close(encoder);
- encoder_finish(encoder);
+ encoder->Close();
+ encoder->Dispose();
}
diff --git a/test/test_vorbis_encoder.cxx b/test/test_vorbis_encoder.cxx
index f01331ee5..8e6b62739 100644
--- a/test/test_vorbis_encoder.cxx
+++ b/test/test_vorbis_encoder.cxx
@@ -63,7 +63,7 @@ main(gcc_unused int argc, gcc_unused char **argv)
/* open the encoder */
AudioFormat audio_format(44100, SampleFormat::S16, 2);
- success = encoder_open(encoder, audio_format, IgnoreError());
+ success = encoder->Open(audio_format, IgnoreError());
assert(success);
encoder_to_stdout(*encoder);
@@ -108,6 +108,6 @@ main(gcc_unused int argc, gcc_unused char **argv)
encoder_to_stdout(*encoder);
- encoder_close(encoder);
- encoder_finish(encoder);
+ encoder->Close();
+ encoder->Dispose();
}