Commit cc3c1f31 authored by Max Kellermann's avatar Max Kellermann

test/DumpDecoderClient: convert to class

parent 5909502a
......@@ -29,11 +29,16 @@
* A #DecoderClient implementation which dumps metadata to stderr and
* decoded data to stdout.
*/
struct DumpDecoderClient final : DecoderClient {
class DumpDecoderClient final : public DecoderClient {
bool initialized = false;
public:
Mutex mutex;
Cond cond;
bool initialized = false;
bool IsInitialized() const noexcept {
return initialized;
}
/* virtual methods from DecoderClient */
void Ready(AudioFormat audio_format,
......
......@@ -131,7 +131,7 @@ try {
return EXIT_FAILURE;
}
if (!client.initialized) {
if (!client.IsInitialized()) {
fprintf(stderr, "Decoding failed\n");
return EXIT_FAILURE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment