Commit 31e11f5b authored by Thomas Guillem's avatar Thomas Guillem

trivial: accept different chan_modes

This fixes a regression from 91f42699

This regressions caused the audio converter chain to fail when a chan_mode
conversion was needed but no converter were found.

In the case of AOUT_CHANMODE_DOLBYSTEREO. The dolby converter won't work with a
stereo output. The lowest priority converter still need to handle this
conversion and drop the chan_mode conversion.

Fixes #19646
parent 8c1c8874
......@@ -193,7 +193,12 @@ static int Create( vlc_object_t *p_this )
|| infmt->i_rate != outfmt->i_rate
|| infmt->i_format != VLC_CODEC_FL32 )
if( infmt->i_physical_channels == outfmt->i_physical_channels )
/* trivial is the lowest priority converter: if chan_mode are different
* here, this filter will still need to convert channels (and ignore
* chan_mode). */
if( infmt->i_physical_channels == outfmt->i_physical_channels
&& infmt->i_chan_mode == outfmt->i_chan_mode )
p_filter->p_sys = NULL;
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