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

Dominik 'Rathann' Mierzejewski dominik
Sat May 20 12:57:29 CEST 2006


This was forwarded to me by Ville Skytt?.

-- 
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
-------------- next part --------------
--- 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;



More information about the ffmpeg-devel mailing list