From 5157699f00469eeac8fc3203f8e9ab01f004c755 Mon Sep 17 00:00:00 2001 From: iovar Date: Sat, 11 Nov 2006 00:11:35 +0000 Subject: cache cleanup on SIGABRT git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@161 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/recordmydesktop.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recordmydesktop/src/recordmydesktop.c b/recordmydesktop/src/recordmydesktop.c index 7af3038..5f2c981 100644 --- a/recordmydesktop/src/recordmydesktop.c +++ b/recordmydesktop/src/recordmydesktop.c @@ -313,11 +313,11 @@ int main(int argc,char **argv){ pthread_join(load_cache_t,NULL); fprintf(stderr,"Encoding finished!\nWait a moment please...\n"); pthread_join(flush_to_ogg_t,NULL); - fprintf(stderr,"Cleanning up cache...\n"); - if(PurgeCache(pdata.cache_data,!pdata.args.nosound)) - fprintf(stderr,"Some error occured while cleaning up cache!\n"); - fprintf(stderr,"Done!!!\n"); } + fprintf(stderr,"Cleanning up cache...\n"); + if(PurgeCache(pdata.cache_data,!pdata.args.nosound)) + fprintf(stderr,"Some error occured while cleaning up cache!\n"); + fprintf(stderr,"Done!!!\n"); } /**@_______________________________________________@*/ @@ -325,7 +325,7 @@ int main(int argc,char **argv){ //So we must make sure the recording is not wasted. XCloseDisplay(pdata.dpy); - if(Aborted){ + if(Aborted && pdata.args.encOnTheFly){ if(remove(pdata.args.filename)){ perror("Error while removing file:\n"); return 1; -- cgit v1.2.3