summaryrefslogtreecommitdiffstats
path: root/options/m_option.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-25 00:26:36 +0100
committerwm4 <wm4@nowhere>2019-11-25 00:26:36 +0100
commitc26e80d0fd1a751bac1674e5c0792b11eb57957d (patch)
tree60d84bc9eff36bb4c3591ab42b996aaf2dcf69b1 /options/m_option.h
parent92498876419eb4a4438b3574f31e6a852f27288c (diff)
downloadmpv-c26e80d0fd1a751bac1674e5c0792b11eb57957d.tar.bz2
mpv-c26e80d0fd1a751bac1674e5c0792b11eb57957d.tar.xz
command: shuffle some crap around
This is preparation to get rid of the option-to-property bridge (mp_on_set_option). This is a pretty insane thing that redirects accesses to options to properties. It was needed in the ever ongoing transition from something to... something else. A good example for the need of this bridge is applying profiles at runtime. This obviously goes through the config parser, but should also make all changes effective, for which traditionally the property layer is used. There isn't much left that needs this bridge. This commit changes a bunch of options (which also have a property implementation) to use option change notifications instead. Many of the properties are still left, but perform unrelated functions like OSD formatting. This should be mostly compatible. There may be some subtle behavior changes. For example, "hwdec" and "record-file" do not check for changes anymore before applying them, so writing the current value to them suddenly does something, while it was ignored before. DVB changes untested, but should work.
Diffstat (limited to 'options/m_option.h')
-rw-r--r--options/m_option.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/options/m_option.h b/options/m_option.h
index 7be8ae4b7b..4289fa5a2e 100644
--- a/options/m_option.h
+++ b/options/m_option.h
@@ -412,7 +412,9 @@ char *format_file_size(int64_t size);
#define UPDATE_VOL (1 << 17) // softvol related options
#define UPDATE_LAVFI_COMPLEX (1 << 18) // --lavfi-complex
#define UPDATE_VO_RESIZE (1 << 19) // --android-surface-size
-#define UPDATE_OPT_LAST (1 << 19)
+#define UPDATE_HWDEC (1 << 20) // --hwdec
+#define UPDATE_DVB_PROG (1 << 21) // some --dvbin-...
+#define UPDATE_OPT_LAST (1 << 21)
// All bits between _FIRST and _LAST (inclusive)
#define UPDATE_OPTS_MASK \