decoder/Thread, ...: log all exceptions

This commit is contained in:
Max Kellermann
2018-08-09 11:14:40 +02:00
parent 87570cdd9b
commit 01d3777574
8 changed files with 19 additions and 20 deletions

View File

@@ -536,9 +536,8 @@ DecoderControl::RunThread() noexcept
if (state == DecoderState::ERROR) {
try {
std::rethrow_exception(error);
} catch (const std::exception &e) {
LogError(e);
} catch (...) {
LogError(std::current_exception());
}
}

View File

@@ -255,9 +255,9 @@ FfmpegSendFrame(DecoderClient &client, InputStream &is,
try {
output_buffer = copy_interleave_frame(codec_context, frame,
buffer);
} catch (const std::exception &e) {
} catch (...) {
/* this must be a serious error, e.g. OOM */
LogError(e);
LogError(std::current_exception());
return DecoderCommand::STOP;
}