summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-02 15:50:54 +0200
committerwm4 <wm4@nowhere>2016-09-02 15:50:54 +0200
commit2c917219cffc74fcc64f04113fe260f2b88d5841 (patch)
treeae874a7185fa23e162219c6d9b27fb656f7d7c9f /options/options.h
parent423e53ba0bad034685e5229720d55548afb1efbe (diff)
downloadmpv-2c917219cffc74fcc64f04113fe260f2b88d5841.tar.bz2
mpv-2c917219cffc74fcc64f04113fe260f2b88d5841.tar.xz
vo: use new option update mechanism
This is still rather basic. run_reconfig() and run_control() update the options because it's needed for panscan (and other video scaling options), and fullscreen, border, ontop updates. In the old model, these options could be accessed only while both playback thread and VO threads were locked (i.e. during synchronous calls like vo_control()), so this should be sufficient in order not to miss any updates. In the future, a more fine-grained update mechanism could be added to handle these updates "exactly". x11_common.c contains an evil hack, as I see no reasonable way to handle this properly. The VO thread can't "lock" the main thread, so this is not simple.
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h
index 1a2bfa68c8..d450675e61 100644
--- a/options/options.h
+++ b/options/options.h
@@ -335,5 +335,6 @@ typedef struct MPOpts {
extern const m_option_t mp_opts[];
extern const struct MPOpts mp_default_opts;
+extern const struct m_sub_options vo_sub_opts;
#endif