]> git.sesse.net Git - vlc/commitdiff
window: add window type
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 2 Nov 2013 20:50:28 +0000 (22:50 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 3 Nov 2013 14:21:59 +0000 (16:21 +0200)
EGL needs to know the kind of window at run-time.

include/vlc_vout_window.h
src/video_output/window.c

index e7944685b6ca9092ca77ec20d5aff55d32929e6b..e3e7ff6eb211785dbf84a6ee6071023d5aa6c44f 100644 (file)
@@ -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.
index b351936e989518fd27d8e58c0abc1bfcfcc6ed93..ffe779a562bfac505a716aff61918c5c90d4a5a3 100644 (file)
@@ -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) {