From 3370b5318c1845704ae95f1d919a37bb881f52f9 Mon Sep 17 00:00:00 2001 From: iovar Date: Thu, 26 Oct 2006 01:45:04 +0000 Subject: cache initialization, image flushing git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@115 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- rMD-exp/src/cache_frame.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rMD-exp/src/cache_frame.c') diff --git a/rMD-exp/src/cache_frame.c b/rMD-exp/src/cache_frame.c index 6b214e0..6f97723 100644 --- a/rMD-exp/src/cache_frame.c +++ b/rMD-exp/src/cache_frame.c @@ -25,7 +25,8 @@ **********************************************************************************/ #include -#include + + void MakeChecksums(unsigned char *buf,int width,int height,int divisor,unsigned short int *checksums){ int i,k,j,m; @@ -60,8 +61,8 @@ void *CacheImageBuffer(void *pdata){ pthread_mutex_init(&pmut,NULL); pthread_mutex_init(&imut,NULL); yuv_buffer yuv[2]; - gzFile *fp; - fp=gzopen("temp.out","wb1f"); + gzFile *fp=((ProgData *)pdata)->cache_data->ifp; + if(fp==NULL)exit(13); unsigned short int checksums_y[2][256], -- cgit v1.2.3