]> git.sesse.net Git - vlc/commitdiff
Implemented VOUT_DISPLAY_GET_OPENGL in XCB/glx.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 13 Dec 2009 11:39:47 +0000 (12:39 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 13 Dec 2009 12:52:37 +0000 (13:52 +0100)
modules/video_output/xcb/glx.c

index fcd9b9aeed29f40b2230fcf22de3e649d1c71e53..6804c35aabfa17307eb7cf57ea628f92e0b61bb5 100644 (file)
@@ -56,6 +56,7 @@ vlc_module_begin ()
 
     add_shortcut ("xcb-glx")
     add_shortcut ("glx")
+    add_shortcut ("opengl")
 vlc_module_end ()
 
 struct vout_display_sys_t
@@ -535,6 +536,14 @@ static int Control (vout_display_t *vd, int query, va_list ap)
                                       sys->embed->xid,
                                     XCB_CW_CURSOR, &(uint32_t){ sys->cursor });
         return VLC_SUCCESS;
+
+    case VOUT_DISPLAY_GET_OPENGL:
+    {
+        vout_opengl_t **gl = va_arg (ap, vout_opengl_t **);
+        *gl = &sys->gl;
+        return VLC_SUCCESS;
+    }
+
     case VOUT_DISPLAY_RESET_PICTURES:
         assert (0);
     default: