[vlc-commits] commit: Unroll a for loop that only ever iterates once ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Wed Aug 4 22:52:03 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 4 23:50:59 2010 +0300| [830905f60a7db37ab87c5043d09b50ae9ad81594] | committer: Rémi Denis-Courmont
Unroll a for loop that only ever iterates once
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=830905f60a7db37ab87c5043d09b50ae9ad81594
---
modules/audio_mixer/float32.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/modules/audio_mixer/float32.c b/modules/audio_mixer/float32.c
index f35a6a5..3df474c 100644
--- a/modules/audio_mixer/float32.c
+++ b/modules/audio_mixer/float32.c
@@ -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;
}
More information about the vlc-commits
mailing list