diff --git a/modules/video_output/xcb/xcb.c b/modules/video_output/xcb/xcb.c index 3523602c4be469b621e0f5932d5504b2797c93a9..f4f982b06c5a170e049834b13d7d6602bfa84cbb 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;