[MPlayer-dev-eng] Re: [PATCH] Signal 11 w/ non-X Radeon VIDIX.
Vladimir Mosgalin
mosgalin at VM10124.spb.edu
Thu May 13 09:13:59 CEST 2004
On Tue, 11 May 2004, Jarrod Johnson wrote:
JJ>I have no X server running in my config (set-top box), so the X operations
JJ>make no sense. If XOpenDisplay fails, it should return.
My 10l bug.. Please apply attached patch (the same but in correct
style).
--
Vladimir
-------------- next part --------------
--- mplayer.old/vidix/drivers/radeon_vid.c.orig 2004-05-10 22:55:04.970350640 -0400
+++ mplayer/vidix/drivers/radeon_vid.c 2004-05-10 22:56:03.115511232 -0400
@@ -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-dev-eng
mailing list