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:
parent
7e678d2ba9
commit
1a9a65b23b
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue