summaryrefslogtreecommitdiffstats
path: root/video/out/vulkan/context.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-04-22 17:52:02 -0500
committerDudemanguy <random342@airmail.cc>2024-04-26 17:42:52 +0000
commit76367dae35ef4253e99205ccccf1dbccfc70bdfc (patch)
tree03e8aa1000ca1d6d8e42098ad94aef65c37769cb /video/out/vulkan/context.c
parent2e03e0305caf851e305a7d73af1efe4a4fdf693a (diff)
downloadmpv-master.tar.bz2
mpv-master.tar.xz
m_config_core: fix forced option notification with m_config_cacheHEADmaster
bc28f7693d095758275448410aaa91255482857a originally added this, but the implementation isn't correct and causes excessive notifications when writing to other options which may have bad behavior in some some circumstances. Fix this by reworking the implementation for force options so that the timestamps of the option update compared instead. Whenever an option gets changed, the internal timestamp in the cache is always incremented. For a special force option, we can save this timestamp internally as well. Because cache_check_update is always checked before potentially sending an option notification, we know that if the internal timestamp is equal to the timestamp saved by a force update option, it must have been previously written. Thus, the notification can be sent. This lets options like geometry work repeatedly but without constantly sending notifications. Fixes #13954.
Diffstat (limited to 'video/out/vulkan/context.c')
0 files changed, 0 insertions, 0 deletions