From ad42a60b0112c99e303829b94665911dc36e93be Mon Sep 17 00:00:00 2001 From: iovar Date: Tue, 14 Nov 2006 08:42:52 +0000 Subject: file streams flushing before final cose git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@163 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/cache_frame.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'recordmydesktop') 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); } -- cgit v1.2.3