[vlc-devel] commit: XCB: print server version infos in the debug ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Sep 26 14:36:16 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 26 15:29:30 2009 +0300| [97dabaa39b71c7a8342988e1bb95318188a73e49] | committer: Rémi Denis-Courmont
XCB: print server version infos in the debug
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97dabaa39b71c7a8342988e1bb95318188a73e49
---
modules/video_output/xcb/common.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/xcb/common.c b/modules/video_output/xcb/common.c
index 82119ca..6e39ad5 100644
--- a/modules/video_output/xcb/common.c
+++ b/modules/video_output/xcb/common.c
@@ -71,6 +71,17 @@ xcb_connection_t *Connect (vlc_object_t *obj)
xcb_disconnect (conn);
return NULL;
}
+
+ const xcb_setup_t *setup = xcb_get_setup (conn);
+ msg_Dbg (obj, "connected to X%"PRIu16".%"PRIu16" server",
+ setup->protocol_major_version, setup->protocol_minor_version);
+ char *vendor = strndup (xcb_setup_vendor (setup), setup->vendor_len);
+ if (vendor)
+ {
+ msg_Dbg (obj, " vendor : %s", vendor);
+ free (vendor);
+ }
+ msg_Dbg (obj, " version: %"PRIu32, setup->release_number);
return conn;
}
More information about the vlc-devel
mailing list