diff options
-rw-r--r-- | plugins/gtkui/ctmapping.c | 1 | ||||
-rw-r--r-- | streamer.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/gtkui/ctmapping.c b/plugins/gtkui/ctmapping.c index df149dbb..4bf3bb95 100644 --- a/plugins/gtkui/ctmapping.c +++ b/plugins/gtkui/ctmapping.c @@ -112,6 +112,7 @@ ctmapping_apply (void) { } } deadbeef->conf_set_str ("network.ctmapping", mapstr); + deadbeef->sendmessage (DB_EV_CONFIGCHANGED, 0, 0, 0); } void @@ -843,6 +843,7 @@ streamer_set_current (playItem_t *it) { *sc = 0; } + // FIXME: can be race condition if config changes during this ctmap = streamer_ctmap; while (ctmap) { if (!strcmp (cct, ctmap->ct)) { @@ -2333,6 +2334,9 @@ streamer_configchanged (void) { formatchanged = 1; streamer_reset (1); } + + // FIXME: only if changed (can compare strings) + ctmap_init (); } void |