aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pipe.c b/src/pipe.c
index df648f776..c9f0d159c 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -161,6 +161,7 @@ void
music_pipe_push(struct music_pipe *mp, struct music_chunk *chunk)
{
assert(!music_chunk_is_empty(chunk));
+ assert(chunk->length == 0 || audio_format_valid(&chunk->audio_format));
g_mutex_lock(mp->mutex);