diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-26 04:34:09 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-10-26 04:34:09 +0000 |
commit | d8de31cc23f9102813fb74c8c98e75a8ee9228b2 (patch) | |
tree | 79efb7561521245b29103e673255229a95f0f950 /rMD-exp/src/rmd_cache.c | |
parent | 177ef988ab1f22e889a8994cf1e7c107c3adae6d (diff) |
cancel poll_damage thread
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@120 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'rMD-exp/src/rmd_cache.c')
-rw-r--r-- | rMD-exp/src/rmd_cache.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/rMD-exp/src/rmd_cache.c b/rMD-exp/src/rmd_cache.c index eb86aad..bebd29e 100644 --- a/rMD-exp/src/rmd_cache.c +++ b/rMD-exp/src/rmd_cache.c @@ -80,11 +80,23 @@ void InitCacheData(ProgData *pdata,EncData *enc_data_t,CacheData *cache_data_t){ //now that've got out buffers and our filenames we start //creating the needed files - mkdir(cache_data_t->projname,0777); + if(mkdir(cache_data_t->projname,0777)){ + fprintf(stderr,"Could not create temporary directory %s !!!\n",cache_data_t->projname); + exit(13); + } cache_data_t->ifp=gzopen(cache_data_t->imgdata,"wb1f"); - if(!pdata->args.nosound) + if(cache_data_t->ifp==NULL){ + fprintf(stderr,"Could not create temporary file %s !!!\n",cache_data_t->imgdata); + exit(13); + } + if(!pdata->args.nosound){ cache_data_t->afp=fopen(cache_data_t->audiodata,"wb"); - + if(cache_data_t->afp==NULL){ + fprintf(stderr,"Could not create temporary file %s !!!\n",cache_data_t->audiodata); + exit(13); + } + } + } |