diff options
author | 2011-03-31 22:06:22 +0200 | |
---|---|---|
committer | 2011-03-31 22:06:22 +0200 | |
commit | 5c2f94c8bfa7b98b3c832d0ce11c6ecdbd474029 (patch) | |
tree | eb92ff856f530485809ee0e2e0710f56f8d0155b /plugins/gtkui/dspconfig.c | |
parent | 57de90e3b8958b4d5edf1bd0145f98623768caa9 (diff) |
thread-safe config access
Diffstat (limited to 'plugins/gtkui/dspconfig.c')
-rw-r--r-- | plugins/gtkui/dspconfig.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/gtkui/dspconfig.c b/plugins/gtkui/dspconfig.c index 75f9999c..268f1b16 100644 --- a/plugins/gtkui/dspconfig.c +++ b/plugins/gtkui/dspconfig.c @@ -112,7 +112,9 @@ dsp_setup_init (GtkWidget *_prefwin) { GtkWidget *combobox = lookup_widget (prefwin, "dsp_preset"); GtkWidget *entry = gtk_bin_get_child (GTK_BIN (combobox)); if (entry) { - gtk_entry_set_text (GTK_ENTRY (entry), deadbeef->conf_get_str ("gtkui.conf_dsp_preset", "")); + deadbeef->conf_lock (); + gtk_entry_set_text (GTK_ENTRY (entry), deadbeef->conf_get_str_fast ("gtkui.conf_dsp_preset", "")); + deadbeef->conf_unlock (); } // fill list of presets |