summaryrefslogtreecommitdiff
path: root/recordmydesktop
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-11 00:11:35 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2006-11-11 00:11:35 +0000
commit5157699f00469eeac8fc3203f8e9ab01f004c755 (patch)
tree86c5e0b507cff5b8c34e1228917769df0bc82701 /recordmydesktop
parent663f58eb03ce8bcaa21e751077144faaaf202b32 (diff)
cache cleanup on SIGABRT
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@161 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop')
-rw-r--r--recordmydesktop/src/recordmydesktop.c10
1 files 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;
© All Rights Reserved