[vlc-commits] XCB/GLX: simplification
Rémi Denis-Courmont
git at videolan.org
Sun Oct 28 17:33:02 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct 28 18:32:38 2012 +0200| [58b9244df1ad80db166be7920378ba4b1e5dd8ba] | committer: Rémi Denis-Courmont
XCB/GLX: simplification
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=58b9244df1ad80db166be7920378ba4b1e5dd8ba
---
modules/video_output/xcb/glx.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/modules/video_output/xcb/glx.c b/modules/video_output/xcb/glx.c
index 0ccc1c3..a31d713 100644
--- a/modules/video_output/xcb/glx.c
+++ b/modules/video_output/xcb/glx.c
@@ -358,8 +358,12 @@ static int Open (vlc_object_t *obj)
sys->gl.getProcAddress = GetProcAddress;
sys->gl.sys = sys;
- const vlc_fourcc_t *subpicture_chromas;
- sys->vgl = vout_display_opengl_New (&vd->fmt, &subpicture_chromas, &sys->gl);
+ vout_display_info_t info = vd->info;
+ info.has_pictures_invalid = false;
+ info.has_event_thread = true;
+
+ sys->vgl = vout_display_opengl_New (&vd->fmt, &info.subpicture_chromas,
+ &sys->gl);
if (!sys->vgl)
{
sys->gl.sys = NULL;
@@ -369,15 +373,8 @@ static int Open (vlc_object_t *obj)
sys->cursor = CreateBlankCursor (conn, scr);
sys->visible = false;
- /* */
- vout_display_info_t info = vd->info;
- info.has_pictures_invalid = false;
- info.has_event_thread = true;
- info.subpicture_chromas = subpicture_chromas;
-
/* Setup vout_display_t once everything is fine */
vd->info = info;
-
vd->pool = Pool;
vd->prepare = PictureRender;
vd->display = PictureDisplay;
More information about the vlc-commits
mailing list