all repos — mgba @ 63ed7421ce05174608dd1799f8e7b0a5f01d5c3d

mGBA Game Boy Advance Emulator

Core: Fix rewinding video logs when decompressing
Vicki Pfau vi@endrift.com
Mon, 24 Apr 2017 12:42:46 -0700
commit

63ed7421ce05174608dd1799f8e7b0a5f01d5c3d

parent

f67052eebcba6caf00a8a9d33e20a226e3c5a0d0

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/feature/video-logger.csrc/feature/video-logger.c

@@ -684,6 +684,12 @@ for (i = 0; i < context->nChannels; ++i) {

CircleBufferClear(&context->channels[i].buffer); context->channels[i].bufferRemaining = 0; context->channels[i].currentPointer = pointer; +#ifdef USE_ZLIB + if (context->channels[i].inflating) { + inflateEnd(&context->channels[i].inflateStream); + context->channels[i].inflating = false; + } +#endif } }