summaryrefslogtreecommitdiffstats
path: root/video/decode
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 /video/decode
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 'video/decode')
-rw-r--r--video/decode/vd_lavc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 92065fde0c..ef0f95e60e 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -118,7 +118,8 @@ const struct m_sub_options vd_lavc_conf = {
0, 1, INT_MAX, ({"no", INT_MAX}, {"yes", 1})),
OPT_KEYVALUELIST("vd-lavc-o", avopts, 0),
OPT_FLAG("vd-lavc-dr", dr, 0),
- OPT_STRING_VALIDATE("hwdec", hwdec_api, M_OPT_OPTIONAL_PARAM,
+ OPT_STRING_VALIDATE("hwdec", hwdec_api,
+ M_OPT_OPTIONAL_PARAM | UPDATE_HWDEC,
hwdec_validate_opt),
OPT_STRING("hwdec-codecs", hwdec_codecs, 0),
OPT_IMAGEFORMAT("hwdec-image-format", hwdec_image_format, 0, .min = -1),