Update of /cvsroot/xine/xine-ui/src/xitk
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv18337

Modified Files:
        videowin.c 
Log Message:
Fixed crash upon missing _NET_WM_WINDOW_OPACITY_LOCKED atom [bug #1573056].


Index: videowin.c
===================================================================
RCS file: /cvsroot/xine/xine-ui/src/xitk/videowin.c,v
retrieving revision 1.224
retrieving revision 1.225
diff -u -r1.224 -r1.225
--- videowin.c  11 Nov 2006 10:56:06 -0000      1.224
+++ videowin.c  15 Feb 2007 23:54:21 -0000      1.225
@@ -1,5 +1,5 @@
 /* 
- * Copyright (C) 2000-2006 the xine project
+ * Copyright (C) 2000-2007 the xine project
  * 
  * This file is part of xine, a free video player.
  * 
@@ -339,8 +339,14 @@
  * Ref. http://bugzilla.xfce.org/show_bug.cgi?id=1958
  */
 static void video_window_lock_opacity (void) {
+  Atom opacity_lock = XInternAtom(gGui->video_display, 
"_NET_WM_WINDOW_OPACITY_LOCKED", False);
+
+  /* This shouldn't happen, but was reported in bug #1573056 */
+  if(opacity_lock == None)
+    return;
+
   XChangeProperty(gGui->video_display, gGui->video_window,
-                  XInternAtom (gGui->video_display, 
"_NET_WM_WINDOW_OPACITY_LOCKED", False),
+                 opacity_lock,
                  XA_CARDINAL, 32, PropModeReplace,
                  (unsigned char *)gGui, 1);
 }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to