Commit 93827d63 authored by Thomas Guillem's avatar Thomas Guillem

channel_mixer: mono: prepare format on success

This fixes a i_bytes_per_frame/i_frame_length inconsistency when chaining more
than one audio filters.
parent 4278d11d
......@@ -397,7 +397,10 @@ static int OpenFilter( vlc_object_t *p_this )
p_filter->fmt_out.audio.i_bitspersample );
p_filter->fmt_in.audio.i_format = VLC_CODEC_S16N;
aout_FormatPrepare(&p_filter->fmt_in.audio);
p_filter->fmt_out.audio.i_format = VLC_CODEC_S16N;
aout_FormatPrepare(&p_filter->fmt_out.audio);
return VLC_SUCCESS;
}
......
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