diff options
author | wm4 <wm4@nowhere> | 2019-11-27 20:30:13 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-27 20:30:13 +0100 |
commit | db3b5c9309022a806b213771210e762ca5b5aa97 (patch) | |
tree | 3e8be9a6d70d9746fd457e20e4b0fbd1e530c8ad /video/out/x11_common.h | |
parent | 7c6570402bb203a1f1deb5b76807a9c021f47e82 (diff) | |
download | mpv-db3b5c9309022a806b213771210e762ca5b5aa97.tar.bz2 mpv-db3b5c9309022a806b213771210e762ca5b5aa97.tar.xz |
x11_common: don't use vo->opts directly
Use x11->opts instead of vo->opts. This doesn't matter currently, and
x11->opts is actually set to vo->opts. However, there's a chance that
either option access changes, or that the way backends integrate with
struct vo changes. This is just a preemptive change to make this less of
a mess, and it's generally a good idea to reduce accesses to struct vo
anyway.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 730b83ace8..0ae2195f05 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -50,6 +50,7 @@ struct xrandr_display { struct vo_x11_state { struct mp_log *log; struct input_ctx *input_ctx; + struct mp_vo_opts *opts; Display *display; int event_fd; int wakeup_pipe[2]; |