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:
This commit is contained in:
Max Kellermann 2009-02-26 21:02:39 +01:00
parent bcc3a9debf
commit a7b0cfccb4
1 changed files with 1 additions and 1 deletions

View File

@ -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,