diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-14 08:42:52 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-14 08:42:52 +0000 |
commit | ad42a60b0112c99e303829b94665911dc36e93be (patch) | |
tree | 0688c76dd57618747c834348dedc6e670454a51f /recordmydesktop/src | |
parent | 7fb4367742b9efad12a69aeae4fc63a47a55eed0 (diff) |
file streams flushing before final cose
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@163 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src')
-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); } |