summaryrefslogtreecommitdiffstats
path: root/firmware/pcm_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/pcm_record.c')
-rw-r--r--firmware/pcm_record.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/pcm_record.c b/firmware/pcm_record.c
index ac12fe2ba0..361689de3a 100644
--- a/firmware/pcm_record.c
+++ b/firmware/pcm_record.c
@@ -901,7 +901,10 @@ static void pcmrec_flush(unsigned flush_num)
INC_ENC_INDEX(enc_rd_index);
if (errors != 0)
+ {
+ pcmrec_end_file();
break;
+ }
if (flush_num == PCMREC_FLUSH_MINI &&
++chunks_flushed >= MINI_CHUNKS)