[vlc-devel] commit: Implemented VOUT_DISPLAY_GET_OPENGL in XCB/glx. (Laurent Aimar )
git version control
git at videolan.org
Sun Dec 13 13:53:41 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 13 12:39:47 2009 +0100| [1dd20f7a65063f184000716f6ae831ca153a57c4] | committer: Laurent Aimar
Implemented VOUT_DISPLAY_GET_OPENGL in XCB/glx.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1dd20f7a65063f184000716f6ae831ca153a57c4
---
modules/video_output/xcb/glx.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index fcd9b9a..6804c35 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -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:
More information about the vlc-devel
mailing list