Commit a7b0cfcc authored by Max Kellermann's avatar Max Kellermann

output_thread: use the right audio_format in assert()

ao_play() gets PCM data in the in_audio_format, and converts it to out_audio_format. Comparing the input data with out_audio_format is wrong. prefixed with "STG:" will be automatically removed. STG: Trailing empty lines will be automatically removed. STG: vi: set textwidth=75 filetype=diff nobackup:
parent bcc3a9de
......@@ -58,7 +58,7 @@ static void ao_play(struct audio_output *ao)
size_t size = ao->args.play.size;
assert(size > 0);
assert(size % audio_format_frame_size(&ao->out_audio_format) == 0);
assert(size % audio_format_frame_size(&ao->in_audio_format) == 0);
if (!audio_format_equals(&ao->in_audio_format, &ao->out_audio_format)) {
data = pcm_convert(&ao->convert_state,
......
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