diff options
author | Max Kellermann <max@musicpd.org> | 2018-02-17 08:27:03 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-02-17 08:27:03 +0100 |
commit | 88bbd847e0e99735f607fbf8ea8d12c6d20bbfcc (patch) | |
tree | 6ca93d8710e1cc12ed82b604ef0e7a09b1fdb2f0 /test/run_decoder.cxx | |
parent | 34d14df297e09d6d31cea9c6984d396006ab6902 (diff) |
test/FakeDecoderAPI: rename to DumpDecoderClient
Diffstat (limited to 'test/run_decoder.cxx')
-rw-r--r-- | test/run_decoder.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx index c88625a9d..c4d47c804 100644 --- a/test/run_decoder.cxx +++ b/test/run_decoder.cxx @@ -22,7 +22,7 @@ #include "event/Thread.hxx" #include "decoder/DecoderList.hxx" #include "decoder/DecoderPlugin.hxx" -#include "FakeDecoderAPI.hxx" +#include "DumpDecoderClient.hxx" #include "input/Init.hxx" #include "input/InputStream.hxx" #include "fs/Path.hxx" @@ -119,19 +119,19 @@ try { return EXIT_FAILURE; } - FakeDecoder decoder; + DumpDecoderClient client; if (plugin->file_decode != nullptr) { - plugin->FileDecode(decoder, Path::FromFS(c.uri)); + plugin->FileDecode(client, Path::FromFS(c.uri)); } else if (plugin->stream_decode != nullptr) { - auto is = InputStream::OpenReady(c.uri, decoder.mutex, - decoder.cond); - plugin->StreamDecode(decoder, *is); + auto is = InputStream::OpenReady(c.uri, client.mutex, + client.cond); + plugin->StreamDecode(client, *is); } else { fprintf(stderr, "Decoder plugin is not usable\n"); return EXIT_FAILURE; } - if (!decoder.initialized) { + if (!client.initialized) { fprintf(stderr, "Decoding failed\n"); return EXIT_FAILURE; } |