summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bank.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bank.c b/src/bank.c
index 2f6151b..9cb276a 100644
--- a/src/bank.c
+++ b/src/bank.c
@@ -64,6 +64,8 @@ ssize_t xas_bank_record(xas_bank *bank,
if ((readlen = xas_audio_stream_read(input, &buf, amount)) < 0) {
goto error_audio_stream_read;
+ } else if (readlen == 0) {
+ break;
}
xas_audio_copy(bank->format,