decoder/Thread, ...: log all exceptions
This commit is contained in:
		| @@ -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()); | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann