music_pipe: added assertion on chunk->audio_format

Always assert that the audio format of the new chunk is valid.
This commit is contained in:
Max Kellermann 2009-05-11 16:33:48 +02:00
parent 7e678d2ba9
commit 1a9a65b23b
1 changed files with 1 additions and 0 deletions

View File

@ -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);