Commit 1a9a65b2 authored by Max Kellermann's avatar Max Kellermann

music_pipe: added assertion on chunk->audio_format

Always assert that the audio format of the new chunk is valid.
parent 7e678d2b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment