Module Name: xsrc
Committed By: jmcneill
Date: Wed Jan 19 16:28:55 UTC 2011
Modified Files:
xsrc/external/mit/libXvMC/dist/src: XvMCWrapper.c
Log Message:
If XVMC_CLIENTSOVERSION is specified, try it when loading client libraries
before falling back to XVMC_SOVERSION
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 xsrc/external/mit/libXvMC/dist/src/XvMCWrapper.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/libXvMC/dist/src/XvMCWrapper.c
diff -u xsrc/external/mit/libXvMC/dist/src/XvMCWrapper.c:1.1.1.3 xsrc/external/mit/libXvMC/dist/src/XvMCWrapper.c:1.2
--- xsrc/external/mit/libXvMC/dist/src/XvMCWrapper.c:1.1.1.3 Sun Nov 21 05:48:59 2010
+++ xsrc/external/mit/libXvMC/dist/src/XvMCWrapper.c Wed Jan 19 16:28:55 2011
@@ -305,6 +305,10 @@
strncpy(nameBuffer + nameLen, ".so", BUFLEN-nameLen-1);
nameBuffer[BUFLEN-1] = 0;
XFree(clientName);
+#ifdef XVMC_CLIENTSOVERSION
+ handle = dlopenversion(nameBuffer, XVMC_CLIENTSOVERSION, RTLD_LAZY);
+ if (NULL == handle)
+#endif
handle = dlopenversion(nameBuffer, XVMC_SOVERSION,RTLD_LAZY);
} else {
/*