diff options
author | wm4 <wm4@nowhere> | 2018-05-20 22:06:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2018-05-24 19:56:35 +0200 |
commit | 1ebc72d05ccba24609173ee15e9aefd725781d90 (patch) | |
tree | 5a0178401a7c9ee7e477ef2bb1767b8969c7c0f2 /options | |
parent | 4cb264a3ff35cd1dcd8a41f87fb87791920d5156 (diff) | |
download | mpv-1ebc72d05ccba24609173ee15e9aefd725781d90.tar.bz2 mpv-1ebc72d05ccba24609173ee15e9aefd725781d90.tar.xz |
m_config: reduce redundant option change notifications
Diffstat (limited to 'options')
-rw-r--r-- | options/m_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/m_config.c b/options/m_config.c index 77c0fcdc06..92f1009aec 100644 --- a/options/m_config.c +++ b/options/m_config.c @@ -1351,7 +1351,7 @@ void m_config_notify_change_co(struct m_config *config, for (int n = 0; n < shadow->num_listeners; n++) { struct m_config_cache *cache = shadow->listeners[n]; - if (cache->wakeup_cb) + if (cache->wakeup_cb && m_config_gdata(cache->data, co->group_index)) cache->wakeup_cb(cache->wakeup_cb_ctx); } |