[vlc-devel] commit: visual: factorize. ( Rémi Duraffort )

git version control git at videolan.org
Thu Nov 19 10:05:39 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Nov 19 09:42:42 2009 +0100| [5534850701a2d4cb89dcf15363400f8ec2e7144e] | committer: Rémi Duraffort 

visual: factorize.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5534850701a2d4cb89dcf15363400f8ec2e7144e
---

 modules/visualization/visual/effects.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/modules/visualization/visual/effects.c b/modules/visualization/visual/effects.c
index a9104fa..f2043e6 100644
--- a/modules/visualization/visual/effects.c
+++ b/modules/visualization/visual/effects.c
@@ -130,15 +130,9 @@ int spectrum_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
 
         p_data->peaks = calloc( 80, sizeof(int) );
         p_data->prev_heights = calloc( 80, sizeof(int) );
-
-        peaks = ( int * )p_data->peaks;
-        prev_heights = ( int * )p_data->prev_heights;
-    }
-    else
-    {
-        peaks = (int *)p_data->peaks;
-        prev_heights = (int *)p_data->prev_heights;
     }
+    peaks = (int *)p_data->peaks;
+    prev_heights = (int *)p_data->prev_heights;
 
 
     height = malloc( i_nb_bands * sizeof(int) );




More information about the vlc-devel mailing list