From 6a40ba36ff73be6be5253a1772956422b706e42c Mon Sep 17 00:00:00 2001 From: Georgy Dyuldin Date: Sun, 29 Sep 2024 13:26:24 +0300 Subject: [PATCH] Fix segfault on zoom change --- src/dsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsp.c b/src/dsp.c index 94b8ee1..0db50ee 100644 --- a/src/dsp.c +++ b/src/dsp.c @@ -182,8 +182,8 @@ void dsp_samples(float complex *buf_samples, uint16_t size, bool tx) { wf_sg = waterfall_sg_rx; } process_samples(buf_samples, size, sp_decim, sp_sg, wf_sg); - pthread_mutex_unlock(&spectrum_mux); update_spectrum(sp_sg, now, tx); + pthread_mutex_unlock(&spectrum_mux); if (update_waterfall(wf_sg, now, tx)) { update_s_meter(); // TODO: skip on disabled auto min/max