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

git version control git at videolan.org
Thu Nov 19 16:27:30 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Nov 19 13:52:56 2009 +0100| [c8f699876c24cbab555ddf1d40ff801b7f1cd36e] | committer: Rémi Duraffort 

visual: small cleanup.

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

 modules/visualization/visual/effects.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/visualization/visual/effects.c b/modules/visualization/visual/effects.c
index 7f61b62..d93efac 100644
--- a/modules/visualization/visual/effects.c
+++ b/modules/visualization/visual/effects.c
@@ -429,7 +429,7 @@ int spectrometer_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
 
     if( !p_effect->p_data )
     {
-        p_effect->p_data=(void *)calloc( 80, sizeof(int) );
+        p_effect->p_data = calloc( 80, sizeof(int) );
         if( !p_effect->p_data )
         {
             free( p_s16_buff );
@@ -438,7 +438,7 @@ int spectrometer_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
     }
     peaks =(int *)p_effect->p_data;
 
-    height = (int *)malloc( i_nb_bands * sizeof(int) );
+    height = malloc( i_nb_bands * sizeof(int) );
     if( !height)
     {
         free( p_effect->p_data );
@@ -882,7 +882,7 @@ int vuMeter_Run(visual_effect_t * p_effect, vlc_object_t *p_aout,
     if( !p_effect->p_data )
     {
         /* Allocate memory to save hand positions */
-        p_effect->p_data = (void *)malloc( 2 * sizeof(float) );
+        p_effect->p_data = malloc( 2 * sizeof(float) );
         i_value = p_effect->p_data;
         i_value[0] = i_value_l;
         i_value[1] = i_value_r;




More information about the vlc-devel mailing list