diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-10-12 15:36:24 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-10-12 15:36:34 +0200 |
commit | bb4fdcd93636e40e6f90758052d0dc3d30bc6dd8 (patch) | |
tree | 64b7e0dface7d3dd3352bfcccca7100af471efe3 | |
parent | d06beedcaa5225f9a921d5fdff5d9182d9b38e08 (diff) | |
download | desktop-tools-bb4fdcd93636e40e6f90758052d0dc3d30bc6dd8.tar.gz desktop-tools-bb4fdcd93636e40e6f90758052d0dc3d30bc6dd8.tar.xz desktop-tools-bb4fdcd93636e40e6f90758052d0dc3d30bc6dd8.zip |
wmstatus: fix noise adjustment logicHEADorigin/mastermaster
It was possible to trigger an untracked playback stream.
-rw-r--r-- | wmstatus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2249,7 +2249,7 @@ action_noise_adjust (struct app_context *ctx, const struct strv *args) long arg = strtol (args->vector[0], NULL, 10); ctx->noise_fadeout_samples = 0; ctx->noise_fadeout_iterator = 0; - if (!ctx->noise_end_time && (arg < 0 || !noise_start (ctx))) + if (!ctx->noise_end_time && (arg <= 0 || !noise_start (ctx))) return; time_t now = time (NULL); |