Core: Fix rewinding video logs when decompressing
Vicki Pfau vi@endrift.com
Mon, 24 Apr 2017 12:42:46 -0700
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
src/feature/video-logger.c
→
src/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 } }