summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2009-01-20 08:33:59 -0800
committerAaron Plattner <aplattner@nvidia.com>2009-01-20 08:33:59 -0800
commit13eb27950da0f87950aeef9f009da189584db99e (patch)
tree85014a9bd5e9cc9def73cb53133ee70f94677ed6
parentdbe8cb63dd55cd4c7d2e399357fa6ec7e4b5049f (diff)
vdpinfo-0.0.3
-rw-r--r--Makefile2
-rw-r--r--vdpinfo.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 756171d..c097f45 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CXXFLAGS=-O3 -ffast-math -g -march=opteron
+CXXFLAGS=-O3 -g
LDFLAGS=-lvdpau -lX11
PROGRAMS=vdpinfo
diff --git a/vdpinfo.cpp b/vdpinfo.cpp
index 34b20fc..28b7c99 100644
--- a/vdpinfo.cpp
+++ b/vdpinfo.cpp
@@ -255,8 +255,7 @@ void queryVideoMixer(VDPDeviceImpl *device)
printf("------------------------------------\n");
for(int x=0; x<mixer_features_count; ++x)
{
- VdpBool is_supported;
-
+ VdpBool is_supported = false; /* There seems to be a bug in VideoMixerQueryFeatureSupport, is_supported sometimes isn't written even though the operation was succesfuls */
rv = device->VideoMixerQueryFeatureSupport(device->device, mixer_features[x].id,
&is_supported);
is_supported = (rv == VDP_STATUS_OK && is_supported);