[vlc-devel] commit: Implemented VOUT_DISPLAY_GET_OPENGL in glwin32. (Laurent Aimar )

git version control git at videolan.org
Sun Dec 13 13:53:40 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Dec 12 22:42:18 2009 +0100| [fdb2c3ebd8d8e8247f10811e8c8e8b1705c0abe6] | committer: Laurent Aimar 

Implemented VOUT_DISPLAY_GET_OPENGL in glwin32.

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

 modules/video_output/msw/glwin32.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/msw/glwin32.c b/modules/video_output/msw/glwin32.c
index 21dc7d7..7601fd9 100644
--- a/modules/video_output/msw/glwin32.c
+++ b/modules/video_output/msw/glwin32.c
@@ -55,6 +55,7 @@ vlc_module_begin()
     set_description(N_("OpenGL video output"))
     set_capability("vout display", 20)
     add_shortcut("glwin32")
+    add_shortcut("opengl")
     set_callbacks(Open, Close)
 
     /* FIXME: Hack to avoid unregistering our window class */
@@ -208,7 +209,15 @@ static void Display(vout_display_t *vd, picture_t *picture)
 
 static int Control(vout_display_t *vd, int query, va_list args)
 {
-    return CommonControl(vd, query, args);
+    switch (query) {
+    case VOUT_DISPLAY_GET_OPENGL: {
+        vout_opengl_t **gl = va_arg(args, vout_opengl_t **);
+        *gl = &vd->sys->gl;
+        return VLC_SUCCESS;
+    }
+    default:
+        return CommonControl(vd, query, args);
+    }
 }
 
 static void Manage (vout_display_t *vd)




More information about the vlc-devel mailing list