Commit 0e874482 authored by Cheng Sun's avatar Cheng Sun Committed by Rémi Denis-Courmont

Fix mono audio filter condition check

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent f3ea7239
...@@ -369,10 +369,10 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -369,10 +369,10 @@ static int OpenFilter( vlc_object_t *p_this )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
if( (p_filter->fmt_in.audio.i_format != p_filter->fmt_out.audio.i_format) && if( (p_filter->fmt_in.audio.i_format != p_filter->fmt_out.audio.i_format) ||
(p_filter->fmt_in.audio.i_rate != p_filter->fmt_out.audio.i_rate) && (p_filter->fmt_in.audio.i_rate != p_filter->fmt_out.audio.i_rate) ||
(p_filter->fmt_in.audio.i_format != VLC_CODEC_S16N) && (p_filter->fmt_in.audio.i_format != VLC_CODEC_S16N) ||
(p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) && (p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) ||
(p_filter->fmt_in.audio.i_bitspersample != (p_filter->fmt_in.audio.i_bitspersample !=
p_filter->fmt_out.audio.i_bitspersample)) p_filter->fmt_out.audio.i_bitspersample))
{ {
......
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