Commit fcba019f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* memleak if normvol filter cannot be used.

parent 5d9f43a3
...@@ -100,8 +100,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -100,8 +100,7 @@ static int Open( vlc_object_t *p_this )
aout_filter_t *p_filter = (aout_filter_t*)p_this; aout_filter_t *p_filter = (aout_filter_t*)p_this;
vlc_bool_t b_fit = VLC_TRUE; vlc_bool_t b_fit = VLC_TRUE;
int i_channels; int i_channels;
aout_filter_sys_t *p_sys = p_filter->p_sys = aout_filter_sys_t *p_sys;
malloc( sizeof( aout_filter_sys_t ) );
if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) || if( p_filter->input.i_format != VLC_FOURCC('f','l','3','2' ) ||
p_filter->output.i_format != VLC_FOURCC('f','l','3','2') ) p_filter->output.i_format != VLC_FOURCC('f','l','3','2') )
...@@ -130,6 +129,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -130,6 +129,7 @@ static int Open( vlc_object_t *p_this )
i_channels = aout_FormatNbChannels( &p_filter->input ); i_channels = aout_FormatNbChannels( &p_filter->input );
p_sys = p_filter->p_sys = malloc( sizeof( aout_filter_sys_t ) );
p_sys->i_nb = var_CreateGetInteger( p_filter->p_parent, "norm-buff-size" ); p_sys->i_nb = var_CreateGetInteger( p_filter->p_parent, "norm-buff-size" );
p_sys->f_max = var_CreateGetFloat( p_filter->p_parent, "norm-max-level" ); p_sys->f_max = var_CreateGetFloat( p_filter->p_parent, "norm-max-level" );
......
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