Main, ...: catch any exception, not just std::runtime_error
This commit is contained in:
src
Instance.cxxListen.cxxMain.cxxPlaylistSave.cxxSongFilter.cxxSongUpdate.cxxStats.cxxTagFile.cxxTagStream.cxx
command
db
plugins
update
decoder
Bridge.cxxDecoderAPI.cxxDecoderThread.cxx
plugins
AudiofileDecoderPlugin.cxxDsdLib.cxxFaadDecoderPlugin.cxxFfmpegDecoderPlugin.cxxFfmpegIo.cxxFlacCommon.cxxFlacDecoderPlugin.cxxFlacIOHandle.cxxFlacInput.cxxMadDecoderPlugin.cxxMpcdecDecoderPlugin.cxxOggDecoder.cxxOpusDecoderPlugin.cxxPcmDecoderPlugin.cxxSndfileDecoderPlugin.cxxVorbisDecoderPlugin.cxxWavpackDecoderPlugin.cxx
event
filter
plugins
fs
input
lib
mixer
neighbor
plugins
output
player
playlist
queue
sticker
storage
tag
test
@@ -416,7 +416,7 @@ try {
|
||||
assert(nbytes > 0 || is.IsEOF());
|
||||
|
||||
return nbytes;
|
||||
} catch (const std::runtime_error &e) {
|
||||
} catch (...) {
|
||||
error = std::current_exception();
|
||||
return 0;
|
||||
}
|
||||
@@ -471,7 +471,7 @@ DecoderBridge::SubmitData(InputStream *is,
|
||||
auto result = convert->Convert({data, length});
|
||||
data = result.data;
|
||||
length = result.size;
|
||||
} catch (const std::runtime_error &e) {
|
||||
} catch (...) {
|
||||
/* the PCM conversion has failed - stop
|
||||
playback, since we have no better way to
|
||||
bail out */
|
||||
|
Reference in New Issue
Block a user