Skip to content

Commit e836641

Browse files
committed
Do not change reset param if value is 0
Signed-off-by: falkTX <[email protected]>
1 parent 721c453 commit e836641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/effects.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6367,7 +6367,7 @@ int effects_flush_parameters(int effect_id, int reset, int param_count, const fl
63676367
port_t *port;
63686368
float value;
63696369

6370-
if (effect->reset_index >= 0)
6370+
if (effect->reset_index >= 0 && reset != 0)
63716371
{
63726372
*(effect->ports[effect->reset_index]->buffer) = reset;
63736373
}
@@ -6393,7 +6393,7 @@ int effects_flush_parameters(int effect_id, int reset, int param_count, const fl
63936393
}
63946394

63956395
// reset a 2nd time in case plugin was processing while we changed parameters
6396-
if (effect->reset_index >= 0)
6396+
if (effect->reset_index >= 0 && reset != 0)
63976397
{
63986398
*(effect->ports[effect->reset_index]->buffer) = reset;
63996399
}

0 commit comments

Comments
 (0)