diff options
-rw-r--r-- | recordmydesktop/src/cache_frame.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recordmydesktop/src/cache_frame.c b/recordmydesktop/src/cache_frame.c index a968b14..412db6c 100644 --- a/recordmydesktop/src/cache_frame.c +++ b/recordmydesktop/src/cache_frame.c @@ -249,9 +249,13 @@ void *CacheImageBuffer(void *pdata){ free(yuv[i].v); } fprintf(stderr,"Saved %d frames in a total of %d requests\n",frameno,frames_total); - if(!((ProgData *)pdata)->args.zerocompression) + if(!((ProgData *)pdata)->args.zerocompression){ + gzflush(fp,Z_FINISH); gzclose(fp); - else + } + else{ + fflush(ucfp); fclose(ucfp); + } pthread_exit(&errno); } |