Add engine fatal error types handling
Add general out-of-memory handling Add safety memory buffer for crash or out of memory handling Refactor Globals exit/error state to be in Engine class
This commit is contained in:
@@ -328,11 +328,6 @@ void VideoBackendPlayer::UpdateVideoFrame(Span<byte> data, TimeSpan time, TimeSp
|
||||
if (VideoFrameMemory.Length() < (int32)slicePitch)
|
||||
{
|
||||
VideoFrameMemory.Allocate(slicePitch);
|
||||
if (VideoFrameMemory.IsInvalid())
|
||||
{
|
||||
OUT_OF_MEMORY;
|
||||
return;
|
||||
}
|
||||
}
|
||||
Platform::MemoryCopy(VideoFrameMemory.Get(), data.Get(), slicePitch);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user