]> git.sesse.net Git - vlc/commitdiff
Fix unitialized value.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 14 Aug 2008 22:00:04 +0000 (00:00 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 14 Aug 2008 22:00:04 +0000 (00:00 +0200)
modules/audio_filter/resampler/bandlimited.c

index ad9f0890222ca678bd50e789cbd6f043a3332e8f..24c65cf804525bc6e7b251527c218c2d3701893a 100644 (file)
@@ -135,9 +135,9 @@ static int Create( vlc_object_t *p_this )
 
     /* Allocate the memory needed to store the module's structure */
     p_sys = malloc( sizeof(filter_sys_t) );
-    p_filter->p_sys = (struct aout_filter_sys_t *)p_sys;
     if( p_sys == NULL )
         return VLC_ENOMEM;
+    p_filter->p_sys = (struct aout_filter_sys_t *)p_sys;
 
     /* Calculate worst case for the length of the filter wing */
     d_factor = (double)p_filter->output.i_rate
@@ -156,6 +156,7 @@ static int Create( vlc_object_t *p_this )
     }
 
     p_sys->i_old_wing = 0;
+    p_sys->b_filter2 = false;           /* It seams to be a good valuefor this module */
     p_filter->pf_do_work = DoWork;
 
     /* We don't want a new buffer to be created because we're not sure we'll