aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 12:24:36 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:50 +0200
commitca0d09c50fc4246fdae67b8a33799ea580b68593 (patch)
tree0a3fa0f4837c0274d034f8dba52b274f3e519c3a /test
parent81c3224076da6ad727debc6bab8a5422f7322451 (diff)
downloadmpd-ca0d09c50fc4246fdae67b8a33799ea580b68593.tar.gz
mpd-ca0d09c50fc4246fdae67b8a33799ea580b68593.tar.xz
mpd-ca0d09c50fc4246fdae67b8a33799ea580b68593.zip
EncoderPlugin: pass config_param reference
Diffstat (limited to 'test')
-rw-r--r--test/run_encoder.cxx2
-rw-r--r--test/test_vorbis_encoder.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/run_encoder.cxx b/test/run_encoder.cxx
index 4b1521b99..27ffddedd 100644
--- a/test/run_encoder.cxx
+++ b/test/run_encoder.cxx
@@ -71,7 +71,7 @@ int main(int argc, char **argv)
config_param param;
param.AddBlockParam("quality", "5.0", -1);
- const auto encoder = encoder_init(*plugin, &param, &error);
+ const auto encoder = encoder_init(*plugin, param, &error);
if (encoder == NULL) {
g_printerr("Failed to initialize encoder: %s\n",
error->message);
diff --git a/test/test_vorbis_encoder.cxx b/test/test_vorbis_encoder.cxx
index a523f9d72..75e1462dc 100644
--- a/test/test_vorbis_encoder.cxx
+++ b/test/test_vorbis_encoder.cxx
@@ -56,7 +56,7 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
config_param param;
param.AddBlockParam("quality", "5.0", -1);
- const auto encoder = encoder_init(*plugin, &param, NULL);
+ const auto encoder = encoder_init(*plugin, param, NULL);
assert(encoder != NULL);
/* open the encoder */