Commit 9c767262 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add some debug

parent a73e4106
......@@ -2622,6 +2622,17 @@ static int InitDisplay( vout_thread_t *p_vout )
# else
p_vout->p_sys->b_shm =
( XShmQueryExtension( p_vout->p_sys->p_display ) == True );
if( p_vout->p_sys->b_shm )
{
int major, minor;
Bool pixmaps;
XShmQueryVersion( p_vout->p_sys->p_display, &major, &minor,
&pixmaps );
msg_Dbg( p_vout, "XShm video extension v%d.%d (with%s pixmaps)",
major, minor, pixmaps ? "" : "out" );
}
# endif
if( !p_vout->p_sys->b_shm )
......@@ -2907,6 +2918,14 @@ static IMAGE_TYPE * CreateImage( vout_thread_t *p_vout,
*****************************************************************************/
static int X11ErrorHandler( Display * display, XErrorEvent * event )
{
char txt[1024];
XGetErrorText( display, event->error_code, txt, sizeof( txt ) );
fprintf( stderr,
"[????????] x11 video output error: X11 request %u.%u failed "
"with error code %u:\n %s\n",
event->request_code, event->minor_code, event->error_code, txt );
switch( event->request_code )
{
case X_SetInputFocus:
......
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