Core: Fix potential crashes with mAVStream

This commit is contained in:
Jeffrey Pfau 2016-02-15 23:01:27 -08:00
parent 965f274539
commit bdacbd5761
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;