aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 18:48:38 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 18:48:38 +0200
commitff626ac76357940b2f0ac5cb243a68ac13df0f8a (patch)
tree493888a28950f75f5e254c0ded9dc9703ee83dc3 /test
parent59f8144c50765189594d5932fc25869f9ea6e265 (diff)
downloadmpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.gz
mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.xz
mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.zip
*: use references instead of pointers
Diffstat (limited to 'test')
-rw-r--r--test/read_tags.cxx4
-rw-r--r--test/run_decoder.cxx4
-rw-r--r--test/run_output.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/read_tags.cxx b/test/read_tags.cxx
index f98de3d66..aae2a2df9 100644
--- a/test/read_tags.cxx
+++ b/test/read_tags.cxx
@@ -181,7 +181,7 @@ int main(int argc, char **argv)
return 1;
}
- bool success = decoder_plugin_scan_file(plugin, path,
+ bool success = decoder_plugin_scan_file(*plugin, path,
&print_handler, NULL);
if (!success && plugin->scan_stream != NULL) {
Mutex mutex;
@@ -209,7 +209,7 @@ int main(int argc, char **argv)
mutex.unlock();
- success = decoder_plugin_scan_stream(plugin, is,
+ success = decoder_plugin_scan_stream(*plugin, is,
&print_handler, NULL);
is->Close();
}
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index 7efb9d906..9934429fc 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -184,7 +184,7 @@ int main(int argc, char **argv)
decoder.initialized = false;
if (decoder.plugin->file_decode != NULL) {
- decoder_plugin_file_decode(decoder.plugin, &decoder,
+ decoder_plugin_file_decode(*decoder.plugin, &decoder,
decoder.uri);
} else if (decoder.plugin->stream_decode != NULL) {
Mutex mutex;
@@ -201,7 +201,7 @@ int main(int argc, char **argv)
return 1;
}
- decoder_plugin_stream_decode(decoder.plugin, &decoder, is);
+ decoder_plugin_stream_decode(*decoder.plugin, &decoder, is);
is->Close();
} else {
diff --git a/test/run_output.cxx b/test/run_output.cxx
index 91cffbaf8..0bcad149f 100644
--- a/test/run_output.cxx
+++ b/test/run_output.cxx
@@ -91,7 +91,7 @@ load_audio_output(const char *name)
Error error;
struct audio_output *ao =
- audio_output_new(*param, &dummy_player_control, error);
+ audio_output_new(*param, dummy_player_control, error);
if (ao == nullptr)
g_printerr("%s\n", error.GetMessage());