From: c vw Date: Wed, 8 Jul 2020 14:11:29 +0000 (+0200) Subject: Fixed zoom/pan mutex blockade when changing the active RX X-Git-Url: https://git.rkrishnan.org/pf/simplejson/bar.txt?a=commitdiff_plain;h=12393495b77ba1d5e24e0c03b0c528194a43fec9;p=pihpsdr.git Fixed zoom/pan mutex blockade when changing the active RX --- diff --git a/zoompan.c b/zoompan.c index cde6bb9..3de8fb3 100644 --- a/zoompan.c +++ b/zoompan.c @@ -50,14 +50,14 @@ static GdkRGBA gray; int zoompan_active_receiver_changed(void *data) { if(display_zoompan) { - g_mutex_lock(&pan_zoom_mutex); + //g_mutex_lock(&pan_zoom_mutex); gtk_range_set_value(GTK_RANGE(zoom_scale),active_receiver->zoom); gtk_range_set_range(GTK_RANGE(pan_scale),0.0,(double)(active_receiver->zoom==1?active_receiver->pixels:active_receiver->pixels-active_receiver->width)); gtk_range_set_value (GTK_RANGE(pan_scale),active_receiver->pan); if(active_receiver->zoom == 1) { gtk_widget_set_sensitive(pan_scale, FALSE); } - g_mutex_unlock(&pan_zoom_mutex); + //g_mutex_unlock(&pan_zoom_mutex); } return FALSE; }