Commit 067d7008 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB-XVideo: print adaptor name in the debug

parent 97dabaa3
...@@ -339,6 +339,7 @@ static int Open (vlc_object_t *obj) ...@@ -339,6 +339,7 @@ static int Open (vlc_object_t *obj)
xcb_xv_adaptor_info_next (&it)) xcb_xv_adaptor_info_next (&it))
{ {
const xcb_xv_adaptor_info_t *a = it.data; const xcb_xv_adaptor_info_t *a = it.data;
char *name;
if (forced_adaptor != -1 && forced_adaptor != 0) if (forced_adaptor != -1 && forced_adaptor != 0)
{ {
...@@ -407,6 +408,12 @@ static int Open (vlc_object_t *obj) ...@@ -407,6 +408,12 @@ static int Open (vlc_object_t *obj)
continue; continue;
grabbed_port: grabbed_port:
name = strndup (xcb_xv_adaptor_info_name (a), a->name_size);
if (name != NULL)
{
msg_Dbg (vd, "using adaptor %s", name);
free (name);
}
msg_Dbg (vd, "using port %"PRIu32, p_sys->port); msg_Dbg (vd, "using port %"PRIu32, p_sys->port);
p_sys->id = xfmt->id; p_sys->id = xfmt->id;
...@@ -445,7 +452,7 @@ static int Open (vlc_object_t *obj) ...@@ -445,7 +452,7 @@ static int Open (vlc_object_t *obj)
if (CheckError (vd, conn, "cannot create X11 window", c)) if (CheckError (vd, conn, "cannot create X11 window", c))
goto error; goto error;
p_sys->window = window; p_sys->window = window;
msg_Dbg (vd, "using X11 window %08"PRIx32, window); msg_Dbg (vd, "using X11 window 0x%08"PRIx32, window);
xcb_map_window (conn, window); xcb_map_window (conn, window);
vout_display_place_t place; vout_display_place_t place;
...@@ -465,7 +472,7 @@ static int Open (vlc_object_t *obj) ...@@ -465,7 +472,7 @@ static int Open (vlc_object_t *obj)
/* Create graphic context */ /* Create graphic context */
p_sys->gc = xcb_generate_id (conn); p_sys->gc = xcb_generate_id (conn);
xcb_create_gc (conn, p_sys->gc, p_sys->window, 0, NULL); xcb_create_gc (conn, p_sys->gc, p_sys->window, 0, NULL);
msg_Dbg (vd, "using X11 graphic context %08"PRIx32, p_sys->gc); msg_Dbg (vd, "using X11 graphic context 0x%08"PRIx32, p_sys->gc);
/* */ /* */
p_sys->pool = NULL; p_sys->pool = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment