Commit 25157a72 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

window: add window type

EGL needs to know the kind of window at run-time.
parent 762ba6a9
...@@ -80,6 +80,8 @@ typedef struct { ...@@ -80,6 +80,8 @@ typedef struct {
struct vout_window_t { struct vout_window_t {
VLC_COMMON_MEMBERS VLC_COMMON_MEMBERS
unsigned type; /**< Window handle type */
/* window handle (mandatory) /* window handle (mandatory)
* *
* It must be filled in the open function. * It must be filled in the open function.
......
...@@ -61,6 +61,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj, ...@@ -61,6 +61,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
memset(&window->handle, 0, sizeof(window->handle)); memset(&window->handle, 0, sizeof(window->handle));
window->control = NULL; window->control = NULL;
window->sys = NULL; window->sys = NULL;
window->type = cfg->type;
const char *type; const char *type;
switch (cfg->type) { switch (cfg->type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment