summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWaldo Bastian <waldo.bastian@intel.com>2007-12-06 16:04:09 -0800
committerWaldo Bastian <waldo.bastian@intel.com>2007-12-06 16:04:09 -0800
commitf8ccff8acbf7579ded1902789695a1023334a3fe (patch)
tree8388085a8e2b1897c684e098b550c5e9a43b6702 /test
parent90abc96404f6a46a80fc5bc6bb9a2c23ab366936 (diff)
Update to VA API 0.28
Diffstat (limited to 'test')
-rw-r--r--test/vainfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/vainfo.c b/test/vainfo.c
index a793e14..cd0d979 100644
--- a/test/vainfo.c
+++ b/test/vainfo.c
@@ -28,7 +28,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
-
+#include <stdlib.h>
int main(int argc, const char* argv[])
{
@@ -64,8 +64,9 @@ int main(int argc, const char* argv[])
{
fprintf(stderr, "%s: vaInitialize failed with error code %d (%s)\n",
name, va_status, vaErrorStr(va_status));
+ return 3;
}
- printf("%s: VA API version: %d.%d\n", name, major_version, minor_version);
+
driver = vaQueryVendorString(va_dpy);
printf("%s: Driver version: %s\n", name, driver ? driver : "<unknown>");
vaTerminate(va_dpy);