summaryrefslogtreecommitdiff
path: root/recordmydesktop/src
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-14 08:42:52 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-14 08:42:52 +0000
commitad42a60b0112c99e303829b94665911dc36e93be (patch)
tree0688c76dd57618747c834348dedc6e670454a51f /recordmydesktop/src
parent7fb4367742b9efad12a69aeae4fc63a47a55eed0 (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.c8
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);
}
© All Rights Reserved