summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2004-10-20 16:35:16 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2004-10-20 16:35:16 +0000
commit0077c785f91a80d48216a969757bc3f3b607e7e2 (patch)
tree6130bf00f0d47b605737d8fe6910535f15249a10 /src
parentd6f84be6af28d2a316e05858f0b0571074314c2c (diff)
Imported via XvMC library release 0.13.0 from unichrome.sf.net. This
enables hardware mpeg2 decoding for the CLE266 chip using the nonstandard VLD XvMC extension. Complete author information is available at the unichrome site. Updated the XvMC wrapper to look for version specific Xv and XvMC shared libraries.
Diffstat (limited to 'src')
-rw-r--r--src/XvMCWrapper.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/XvMCWrapper.c b/src/XvMCWrapper.c
index f8fce51..77f8df9 100644
--- a/src/XvMCWrapper.c
+++ b/src/XvMCWrapper.c
@@ -40,6 +40,10 @@
* hardware simultaneously. Not likely as of today.
*/
+#ifdef HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
#include <XvMC.h>
#include <vldXvMC.h>
#include <dlfcn.h>
@@ -47,6 +51,7 @@
#include <string.h>
#include <ctype.h>
+
typedef Bool (*XvMCQueryExtensionP) (Display *, int *, int *);
typedef Status (*XvMCQueryVersionP) (Display *, int *,int *);
typedef XvMCSurfaceInfo * (*XvMCListSurfaceTypesP)(Display *, XvPortID, int *);
@@ -203,16 +208,16 @@ static int preInitW(Display *dpy)
wrapperPreInit = 1;
xW.preInitialised = 0;
xW.initialised = 0;
- xvhandle = dlopen("libXv.so", RTLD_LAZY | RTLD_GLOBAL);
+ xvhandle = dlopen("libXv.so" XV_SOVERSION, RTLD_LAZY | RTLD_GLOBAL);
if (!xvhandle) {
fprintf(stderr,"XvMCWrapper: Warning! Could not open shared "
- "library \"libXv.so\"\nThis may cause relocation "
+ "library \"libXv.so" XV_SOVERSION "\"\nThis may cause relocation "
"errors later.\nError was: \"%s\".\n",dlerror());
}
- handle2 = dlopen("libXvMC.so", RTLD_LAZY | RTLD_GLOBAL);
+ handle2 = dlopen("libXvMC.so" XVMC_SOVERSION, RTLD_LAZY | RTLD_GLOBAL);
if (!handle2) {
fprintf(stderr,"XvMCWrapper: Could not load XvMC "
- "library \"libXvMC.so\". Failing\n");
+ "library \"libXvMC.so" XVMC_SOVERSION "\". Failing\n");
fprintf(stderr,"%s\n",dlerror());
return 1;
}