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

Unroll a for loop that only ever iterates once

parent 0e3e62f3
......@@ -65,13 +65,7 @@ static int Create( vlc_object_t *p_this )
/* Use the trivial mixer when we can */
if ( p_mixer->input_count == 1 && p_mixer->multiplier == 1.0 )
{
int i;
for( i = 0; i < p_mixer->input_count; i++ )
{
if( p_mixer->input[i]->multiplier != 1.0 )
break;
}
if( i >= p_mixer->input_count )
if( p_mixer->input[0]->multiplier == 1.0 )
return -1;
}
......
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