[vlc-commits] window: add window type

Rémi Denis-Courmont git at videolan.org
Sun Nov 3 15:26:15 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov  2 22:50:28 2013 +0200| [25157a728e1f5dae0bc0fa088ffa45bf593f15eb] | committer: Rémi Denis-Courmont

window: add window type

EGL needs to know the kind of window at run-time.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25157a728e1f5dae0bc0fa088ffa45bf593f15eb
---

 include/vlc_vout_window.h |    2 ++
 src/video_output/window.c |    1 +
 2 files changed, 3 insertions(+)

diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index e794468..e3e7ff6 100644
--- a/include/vlc_vout_window.h
+++ b/include/vlc_vout_window.h
@@ -80,6 +80,8 @@ typedef struct {
 struct vout_window_t {
     VLC_COMMON_MEMBERS
 
+    unsigned type; /**< Window handle type */
+
     /* window handle (mandatory)
      *
      * It must be filled in the open function.
diff --git a/src/video_output/window.c b/src/video_output/window.c
index b351936..ffe779a 100644
--- a/src/video_output/window.c
+++ b/src/video_output/window.c
@@ -61,6 +61,7 @@ vout_window_t *vout_window_New(vlc_object_t *obj,
     memset(&window->handle, 0, sizeof(window->handle));
     window->control = NULL;
     window->sys = NULL;
+    window->type = cfg->type;
 
     const char *type;
     switch (cfg->type) {



More information about the vlc-commits mailing list