[Ffmpeg-devel] [PATCH] alternate rgb.txt path support
Dominik 'Rathann' Mierzejewski
dominik
Mon May 22 14:30:27 CEST 2006
On Monday, 22 May 2006 at 14:25, Guillaume Poirier wrote:
> 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?
I guess that's because /usr/share is the new xorg7 standard location.
Regards,
R.
--
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
More information about the ffmpeg-devel
mailing list