Commit 30d0645a authored by Jean-Paul Saman's avatar Jean-Paul Saman Committed by Jean-Paul Saman

Fix floating point exception.

parent 1aa118d5
...@@ -363,9 +363,11 @@ static int OpenFilter( vlc_object_t *p_this ) ...@@ -363,9 +363,11 @@ static int OpenFilter( vlc_object_t *p_this )
filter_t * p_filter = (filter_t *)p_this; filter_t * p_filter = (filter_t *)p_this;
filter_sys_t *p_sys = NULL; filter_sys_t *p_sys = NULL;
if( aout_FormatNbChannels( &(p_filter->fmt_in.audio) ) == 1 ) if( ( aout_FormatNbChannels( &(p_filter->fmt_in.audio) ) == 1 ) ||
( aout_FormatNbChannels( &(p_filter->fmt_in.audio) ) == 0 ) )
{ {
msg_Dbg( p_filter, "filter discarded (incompatible format)" ); msg_Err( p_filter, "incompatible format: %d channels",
aout_FormatNbChannels( &(p_filter->fmt_in.audio) ) );
return VLC_EGENERIC; 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