[vlc-devel] commit: XCB: simplify, fix assertion on grayscale displays ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 25 18:01:52 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 25 19:00:41 2009 +0200| [fe24858420a49117884bdea3c22338e7ad44744f] | committer: Rémi Denis-Courmont 

XCB: simplify, fix assertion on grayscale displays

(X11 has a similar bug, not to how to fix it)

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

 modules/video_output/xcb/xcb.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/xcb/xcb.c b/modules/video_output/xcb/xcb.c
index 3523602..f4f982b 100644
--- a/modules/video_output/xcb/xcb.c
+++ b/modules/video_output/xcb/xcb.c
@@ -151,12 +151,12 @@ static int Open (vlc_object_t *obj)
                                             scr->root_depth)) != NULL)
         msg_Dbg (vout, "using TrueColor visual ID %d", (int)vt->visual_id);
     else
-    if ((vt = xcb_aux_find_visual_by_attrs (scr,XCB_VISUAL_CLASS_STATIC_COLOR,
+    if ((vt = xcb_aux_find_visual_by_attrs (scr, XCB_VISUAL_CLASS_STATIC_COLOR,
                                             scr->root_depth)) != NULL)
         msg_Dbg (vout, "using static color visual ID %d", (int)vt->visual_id);
     else
     {
-        vt = xcb_aux_get_visualtype (p_sys->conn, snum, scr->root_visual);
+        vt = xcb_aux_find_visual_by_id (scr, scr->root_visual);
         assert (vt);
         msg_Err (vout, "unsupported visual class %"PRIu8, vt->_class);
         goto error;




More information about the vlc-devel mailing list