diff options
author | Max Kellermann <max@duempel.org> | 2009-05-11 16:33:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-05-11 16:33:48 +0200 |
commit | 1a9a65b23b2762344c0cbb3b50d5a52a6bb12d39 (patch) | |
tree | 18a12efa8023e6b099c026e8e9a204a3743ce4c5 /src | |
parent | 7e678d2ba966e90c9c5b986446077861b923e3e9 (diff) | |
download | mpd-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.
Diffstat (limited to '')
-rw-r--r-- | src/pipe.c | 1 |
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); |