[Ffmpeg-devel] [PATCH] alternate rgb.txt path support

Guillaume Poirier gpoirier
Mon May 22 14:25:25 CEST 2006


Hi,

Dominik 'Rathann' Mierzejewski wrote:
> This was forwarded to me by Ville Skytt?.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> --- vhook/imlib2.c.orig	2004-09-23 13:33:42.000000000 +0300
> +++ vhook/imlib2.c	2005-12-23 10:29:01.000000000 +0200
> @@ -144,7 +144,9 @@
>          char buff[256];
>          int done = 0;
>  
> -        f = fopen("/usr/lib/X11/rgb.txt", "r");
> +        f = fopen("/usr/share/X11/rgb.txt", "r");
> +        if (!f)
> +            f = fopen("/usr/lib/X11/rgb.txt", "r");
>          if (!f) {
>              fprintf(stderr, "Failed to find rgb.txt\n");
>              return -1;
> 

Any idea why it's not the other way around?, i.e.:

test the existance of /usr/lib/X11/rgb.txt (like currently) and then
test /usr/share/X11/rgb.txt?

Why the other way around?

Guillaume




More information about the ffmpeg-devel mailing list