summaryrefslogtreecommitdiffstats
path: root/src/vinylcontrol
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-10-28 14:48:22 +0100
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-10-28 14:53:07 +0100
commit9379f90a823751e3280806b5d507a52fe337cf2d (patch)
tree80c6cd3492551cda465836148b8a95c5bb2d6c96 /src/vinylcontrol
parent4e0d45b6d13347c6f7b8bdf55b0a35055dfcb5cb (diff)
VinylControlXwax: Simplify boolean expression
Diffstat (limited to 'src/vinylcontrol')
-rw-r--r--src/vinylcontrol/vinylcontrolxwax.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vinylcontrol/vinylcontrolxwax.cpp b/src/vinylcontrol/vinylcontrolxwax.cpp
index ac36940185..c115fea263 100644
--- a/src/vinylcontrol/vinylcontrolxwax.cpp
+++ b/src/vinylcontrol/vinylcontrolxwax.cpp
@@ -256,7 +256,7 @@ void VinylControlXwax::analyzeSamples(CSAMPLE* pSamples, size_t nFrames) {
// Check if vinyl control is enabled...
- m_bIsEnabled = (!enabled) ? false : checkEnabled(m_bIsEnabled, enabled->toBool());
+ m_bIsEnabled = enabled && checkEnabled(m_bIsEnabled, enabled->toBool());
if(bHaveSignal) {
// Always analyze the input samples