[MPlayer-cvslog] r31389 - trunk/gui/wm/ws.c

reimar subversion at mplayerhq.hu
Sun Jun 13 19:59:59 CEST 2010


Author: reimar
Date: Sun Jun 13 19:59:59 2010
New Revision: 31389

Log:
Install error handler as early as possible to avoid crashing.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Sun Jun 13 19:20:29 2010	(r31388)
+++ trunk/gui/wm/ws.c	Sun Jun 13 19:59:59 2010	(r31389)
@@ -210,6 +210,8 @@ if(mDisplay){
   }
 }
 
+ XSetErrorHandler( wsErrorHandler );
+
 /* enable DND atoms */
 wsXDNDInitialize();
 
@@ -330,7 +332,6 @@ wsXDNDInitialize();
      wsConvFunc=rgb32tobgr15;
      break;
   }
- XSetErrorHandler( wsErrorHandler );
 }
 
 // ----------------------------------------------------------------------------------------------


More information about the MPlayer-cvslog mailing list