summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/WavpackDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
committerMax Kellermann <max@musicpd.org>2017-12-19 10:56:23 +0100
commit914df18bf93369d279fff85f87c4ac8524f32540 (patch)
treeb73edeeb37923be1c124e608423ad3b5da068958 /src/decoder/plugins/WavpackDecoderPlugin.cxx
parenta539094c06114a6be862e219bfc03d6a3513d80b (diff)
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/decoder/plugins/WavpackDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/WavpackDecoderPlugin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/WavpackDecoderPlugin.cxx b/src/decoder/plugins/WavpackDecoderPlugin.cxx
index 63615ec3d..51ec3861c 100644
--- a/src/decoder/plugins/WavpackDecoderPlugin.cxx
+++ b/src/decoder/plugins/WavpackDecoderPlugin.cxx
@@ -295,7 +295,7 @@ struct WavpackInput {
try {
is.LockSeek(pos);
return 0;
- } catch (const std::runtime_error &) {
+ } catch (...) {
return -1;
}
}
@@ -520,7 +520,7 @@ wavpack_open_wvc(DecoderClient &client, const char *uri)
try {
return client.OpenUri(uri);
- } catch (const std::runtime_error &) {
+ } catch (...) {
return nullptr;
}
}