summaryrefslogtreecommitdiffstats
path: root/libvo/video_out.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-20 07:36:34 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:41:07 +0300
commitacf319b3edea4d8dd0fe338778e08e0d99dc49bb (patch)
tree8beb60e04061fd392637dfa9859a379e2c96f5c8 /libvo/video_out.h
parentd283d5236ab36bc55c73de4e152dabea7098f850 (diff)
downloadmpv-acf319b3edea4d8dd0fe338778e08e0d99dc49bb.tar.bz2
mpv-acf319b3edea4d8dd0fe338778e08e0d99dc49bb.tar.xz
Create a struct for X11 state
Will be used for common data between X11 VOs. The main reasons for making it a separate struct rather than extra fields in the main VO struct are that some field definitions need X headers and that the code keeps basic X state such as the display connection over opening and closing of individual VOs.
Diffstat (limited to 'libvo/video_out.h')
-rw-r--r--libvo/video_out.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 5e1e244e8c..c1ba46e59f 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -210,9 +210,10 @@ struct vo {
const struct vo_driver *driver;
void *priv;
struct MPOpts *opts;
+ struct vo_x11_state *x11;
};
-struct vo *init_best_video_out(struct MPOpts *opts);
+struct vo *init_best_video_out(struct MPOpts *opts, struct vo_x11_state *x11);
int vo_config(struct vo *vo, uint32_t width, uint32_t height,
uint32_t d_width, uint32_t d_height, uint32_t flags,
char *title, uint32_t format);