From bf5c97a6c38352d492020cd5d6c7563c709bca9d Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Sep 2016 20:16:44 +0200 Subject: 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). --- sub/osd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub') 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) -- cgit v1.2.3