equalizer: fix dynamic changes on bands
authorLuis de Bethencourt <luis.bg@samsung.com>
Tue, 21 Apr 2015 15:34:21 +0000 (16:34 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Wed, 22 Apr 2015 09:38:39 +0000 (10:38 +0100)
commitc884a3b3a5569aa8ada440e423b90618b74b01ab
tree7861416c5d1f76bf4d1b21e4e962bae9e6dd8c05
parent476f9957e8d682d8aafa75cd97d8de04edbdc692
equalizer: fix dynamic changes on bands

When we are in passthrough, the transform function doesn't run and if the
passthrough check is in this function it will never be deactivated. Fix this by
checking directly whenever a gain is changed.

Also set the passthrough to TRUE at init because the gains default to 0, so we
can passthrough until any gain property is changed.

https://bugzilla.gnome.org/show_bug.cgi?id=748068
gst/equalizer/gstiirequalizer.c