From c69c9aae5bddf7c0f68a731bad15acfbe3529877 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9rome=20Decoodt?= Date: Sat, 7 Aug 2004 15:37:53 +0000 Subject: [PATCH] Bug fix and change in parse function --- modules/audio_filter/equalizer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c index 0032f6b8df..ad099b1560 100644 --- a/modules/audio_filter/equalizer.c +++ b/modules/audio_filter/equalizer.c @@ -472,6 +472,11 @@ static int EqzInit( aout_filter_t *p_filter, int i_rate ) /* Register preset bands (for intf) if : */ /* We have no bands info --> the preset info must be given to the intf */ /* or The bands info matches the preset */ + if (p_sys->psz_newbands == NULL) + { + msg_Err(p_filter, "No preset selected"); + return (VLC_EGENERIC); + } if( ( *(val2.psz_string) && strstr( p_sys->psz_newbands, val2.psz_string ) ) || !*val2.psz_string ) { @@ -668,7 +673,7 @@ static int BandsCallback( vlc_object_t *p_this, char const *psz_cmd, p_sys->f_amp[i] = EqzConvertdB( f ); if( !*p ) break; /* end of line */ - p++; + p=p_next+1; } } -- 2.39.2