mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 11:47:45 +00:00
m_config: reduce redundant option change notifications
This commit is contained in:
parent
4cb264a3ff
commit
1ebc72d05c
@ -1351,7 +1351,7 @@ void m_config_notify_change_co(struct m_config *config,
|
|||||||
|
|
||||||
for (int n = 0; n < shadow->num_listeners; n++) {
|
for (int n = 0; n < shadow->num_listeners; n++) {
|
||||||
struct m_config_cache *cache = shadow->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);
|
cache->wakeup_cb(cache->wakeup_cb_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user