summaryrefslogtreecommitdiff
path: root/recordmydesktop
diff options
context:
space:
mode:
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