summaryrefslogtreecommitdiff
path: root/src/rmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rmd.c')
-rw-r--r--src/rmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rmd.c b/src/rmd.c
index b3a1af2..9fe2867 100644
--- a/src/rmd.c
+++ b/src/rmd.c
@@ -158,8 +158,10 @@ int main(int argc, char **argv)
//encode and then cleanup cache
if (!pdata.args.encOnTheFly && !pdata.args.no_encode) {
- if (!pdata.aborted)
- rmdEncodeCache(&pdata);
+ if (!pdata.aborted) {
+ if (rmdEncodeCache(&pdata))
+ return 1;
+ }
fprintf(stderr, "Cleanning up cache...\n");
if (rmdPurgeCache(pdata.cache_data, !pdata.args.nosound))
© All Rights Reserved