[vlc-devel] [PATCH 1/2] libvlc: add equalizer API
Rémi Denis-Courmont
remi at remlab.net
Sat Jul 13 21:39:01 CEST 2013
On Wednesday 10 July 2013 20:44:54 Mark Lee wrote:
> > > diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
> > > index 41b23b4..ea451a3 100644
> > > --- a/src/audio_output/filters.c
> > > +++ b/src/audio_output/filters.c
> > > @@ -314,8 +314,7 @@ static int EqualizerCallback (vlc_object_t *obj,
> >
> > const
> >
> > > char *var, void *data)
> > >
> > > {
> > >
> > > const char *val = newval.psz_string;
> > >
> > > -
> > > - if (*val)
> > > + if (!strcmp("equalizer", var) && *val)
> >
> > Tautology.
>
> Sorry, I don't understand this.
If var compares equal to "equalizer", then *var equals 'e' and is thus
necessarily true.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list