mirror of https://github.com/mgba-emu/mgba.git
Core: Fix potential crashes with mAVStream
This commit is contained in:
parent
965f274539
commit
bdacbd5761
|
@ -557,6 +557,7 @@ int main() {
|
|||
rotation.d.readTiltY = _readTiltY;
|
||||
rotation.d.readGyroZ = _readGyroZ;
|
||||
|
||||
stream.videoDimensionsChanged = 0;
|
||||
stream.postVideoFrame = 0;
|
||||
stream.postAudioFrame = 0;
|
||||
stream.postAudioBuffer = _postAudioBuffer;
|
||||
|
|
|
@ -197,6 +197,7 @@ void retro_init(void) {
|
|||
logger.log = GBARetroLog;
|
||||
mLogSetDefaultLogger(&logger);
|
||||
|
||||
stream.videoDimensionsChanged = 0;
|
||||
stream.postAudioFrame = 0;
|
||||
stream.postAudioBuffer = _postAudioBuffer;
|
||||
stream.postVideoFrame = 0;
|
||||
|
|
Loading…
Reference in New Issue