summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-19 20:16:44 +0200
committerwm4 <wm4@nowhere>2016-09-19 20:16:44 +0200
commitbf5c97a6c38352d492020cd5d6c7563c709bca9d (patch)
tree2fc1e558ad3c5fbfa02c119c9ef347330a6e4f77 /sub
parentdf85c76b7f8711b15e36973518578e0064657b8e (diff)
downloadmpv-bf5c97a6c38352d492020cd5d6c7563c709bca9d.tar.bz2
mpv-bf5c97a6c38352d492020cd5d6c7563c709bca9d.tar.xz
options, command: simplify some option updates
Remove wrapper properties for OSD and video position updates, use the new mechanism for them. We can mark the options directly. Update behavior will work for more options (since I've casually marked more affected options than the old less direct mechanism covered).
Diffstat (limited to 'sub')
-rw-r--r--sub/osd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sub/osd.c b/sub/osd.c
index caefd648ce..dfe75b7698 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -81,6 +81,7 @@ const struct m_sub_options osd_style_conf = {
.align_x = -1,
.align_y = -1,
},
+ .change_flags = UPDATE_OSD,
};
const struct m_sub_options sub_style_conf = {
@@ -99,6 +100,7 @@ const struct m_sub_options sub_style_conf = {
.align_x = 0,
.align_y = 1,
},
+ .change_flags = UPDATE_OSD,
};
static bool osd_res_equals(struct mp_osd_res a, struct mp_osd_res b)