aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/outputBuffer_xfade.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/outputBuffer_xfade.h b/src/outputBuffer_xfade.h
index 48084c44b..336a7adc2 100644
--- a/src/outputBuffer_xfade.h
+++ b/src/outputBuffer_xfade.h
@@ -48,7 +48,8 @@ static size_t calculate_xfade_chunks(struct iovec vec[2])
assert(c);
} while (chunks && c->seq == ob.seq_decoder);
assert((c = get_chunk(vec, chunks)));
- assert(c->seq != ob.seq_decoder);
+ if (!chunks && c->seq != ob.seq_decoder)
+ return 0; /* nothing to xfade */
++chunks;
assert((c = get_chunk(vec, chunks)));
assert(c->seq == ob.seq_decoder);