Commit 61b0186a authored by Thomas Guillem's avatar Thomas Guillem

aout: fix check assert before play

i_buffer and i_nb_samples can be 0.
parent 87d4c0fd
......@@ -483,7 +483,8 @@ void aout_OutputPlay (audio_output_t *aout, block_t *block)
aout_OutputAssertLocked (aout);
#ifndef NDEBUG
aout_owner_t *owner = aout_owner (aout);
assert (block->i_buffer / block->i_nb_samples ==
assert (owner->mixer_format.i_frame_length > 0);
assert (block->i_buffer == 0 || block->i_buffer / block->i_nb_samples ==
owner->mixer_format.i_bytes_per_frame /
owner->mixer_format.i_frame_length);
#endif
......
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