all repos — mgba @ bdacbd5761701c15f2b90898cb1a90131931b272

mGBA Game Boy Advance Emulator

Core: Fix potential crashes with mAVStream
Jeffrey Pfau jeffrey@endrift.com
Mon, 15 Feb 2016 23:01:27 -0800
commit

bdacbd5761701c15f2b90898cb1a90131931b272

parent

965f2745398f08f115de731fbcf50d4be52a49ac

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/3ds/main.csrc/platform/3ds/main.c

@@ -557,6 +557,7 @@ rotation.d.readTiltX = _readTiltX;

rotation.d.readTiltY = _readTiltY; rotation.d.readGyroZ = _readGyroZ; + stream.videoDimensionsChanged = 0; stream.postVideoFrame = 0; stream.postAudioFrame = 0; stream.postAudioBuffer = _postAudioBuffer;
M src/platform/libretro/libretro.csrc/platform/libretro/libretro.c

@@ -197,6 +197,7 @@ }

logger.log = GBARetroLog; mLogSetDefaultLogger(&logger); + stream.videoDimensionsChanged = 0; stream.postAudioFrame = 0; stream.postAudioBuffer = _postAudioBuffer; stream.postVideoFrame = 0;