aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-05-11 16:33:48 +0200
committerMax Kellermann <max@duempel.org>2009-05-11 16:33:48 +0200
commit1a9a65b23b2762344c0cbb3b50d5a52a6bb12d39 (patch)
tree18a12efa8023e6b099c026e8e9a204a3743ce4c5
parent7e678d2ba966e90c9c5b986446077861b923e3e9 (diff)
downloadmpd-1a9a65b23b2762344c0cbb3b50d5a52a6bb12d39.tar.gz
mpd-1a9a65b23b2762344c0cbb3b50d5a52a6bb12d39.tar.xz
mpd-1a9a65b23b2762344c0cbb3b50d5a52a6bb12d39.zip
music_pipe: added assertion on chunk->audio_format
Always assert that the audio format of the new chunk is valid.
-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);