diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-19 10:56:23 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-19 10:56:23 +0100 |
commit | 914df18bf93369d279fff85f87c4ac8524f32540 (patch) | |
tree | b73edeeb37923be1c124e608423ad3b5da068958 /src/decoder/plugins/VorbisDecoderPlugin.cxx | |
parent | a539094c06114a6be862e219bfc03d6a3513d80b (diff) |
Main, ...: catch any exception, not just std::runtime_error
Diffstat (limited to 'src/decoder/plugins/VorbisDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/plugins/VorbisDecoderPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/VorbisDecoderPlugin.cxx b/src/decoder/plugins/VorbisDecoderPlugin.cxx index fbbc0264a..c99427fd9 100644 --- a/src/decoder/plugins/VorbisDecoderPlugin.cxx +++ b/src/decoder/plugins/VorbisDecoderPlugin.cxx @@ -129,7 +129,7 @@ VorbisDecoder::Seek(uint64_t where_frame) SeekGranulePos(where_granulepos); vorbis_synthesis_restart(&dsp); return true; - } catch (const std::runtime_error &) { + } catch (...) { return false; } } @@ -323,7 +323,7 @@ vorbis_stream_decode(DecoderClient &client, moved it */ try { input_stream.LockRewind(); - } catch (const std::runtime_error &) { + } catch (...) { } DecoderReader reader(client, input_stream); |