diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-28 21:29:01 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-28 21:29:01 +0200 |
commit | 0c343cb1c3122d2ec237250bb28e14a92809476f (patch) | |
tree | ee222a41a79e215e64aa840b5d75ecfb0c7264b5 /test/run_encoder.cxx | |
parent | aead221184f52e68d161118a925a242f0858f736 (diff) |
encoder/Plugin: migrate from class Error to C++ exceptions
Diffstat (limited to 'test/run_encoder.cxx')
-rw-r--r-- | test/run_encoder.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/run_encoder.cxx b/test/run_encoder.cxx index 52857c2e8..5775a9b25 100644 --- a/test/run_encoder.cxx +++ b/test/run_encoder.cxx @@ -67,11 +67,7 @@ int main(int argc, char **argv) try { Error error; - std::unique_ptr<PreparedEncoder> p_encoder(encoder_init(*plugin, block, error)); - if (p_encoder == nullptr) { - LogError(error, "Failed to initialize encoder"); - return EXIT_FAILURE; - } + std::unique_ptr<PreparedEncoder> p_encoder(encoder_init(*plugin, block)); /* open the encoder */ |