Commit ce716153 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mono: remove redundant checks

parent 0e893017
......@@ -351,19 +351,9 @@ static int OpenFilter( vlc_object_t *p_this )
return VLC_EGENERIC;
}
if( (p_filter->fmt_in.i_codec != VLC_CODEC_S16N) ||
(p_filter->fmt_out.i_codec != VLC_CODEC_S16N) )
{
/*msg_Err( p_this, "filter discarded (invalid format)" );*/
return VLC_EGENERIC;
}
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_format != VLC_CODEC_S16N) ||
(p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) ||
(p_filter->fmt_in.audio.i_bitspersample !=
p_filter->fmt_out.audio.i_bitspersample))
(p_filter->fmt_out.audio.i_format != VLC_CODEC_S16N) )
{
/*msg_Err( p_this, "couldn't load mono filter" );*/
return VLC_EGENERIC;
......
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