[Mplayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.83,1.84

Diego Biurrun CVS syncmail at mplayerhq.hu
Thu May 13 10:52:36 CEST 2004


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var2/tmp/cvs-serv21888/vidix/drivers

Modified Files:
	radeon_vid.c 
Log Message:
segfault fix by Jarrod Johnson <jbj-zl at ura.dnsalias.org>
approved by Vladimir Mosgalin, the original author of that code snippet


Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- radeon_vid.c	12 May 2004 16:50:11 -0000	1.83
+++ radeon_vid.c	13 May 2004 08:52:34 -0000	1.84
@@ -930,7 +930,11 @@
 void probe_fireGL_driver() {
   Display *dp = XOpenDisplay ((void*)0);
   int n = 0;
-  char **extlist = XListExtensions (dp, &n);
+  char **extlist;
+  if (dp==NULL) {
+       return;
+  }
+  extlist = XListExtensions (dp, &n);
   XCloseDisplay (dp);
   if (extlist) {
     int i;




More information about the MPlayer-cvslog mailing list