diff options
author | Waldo Bastian <waldo.bastian@intel.com> | 2007-12-06 16:04:09 -0800 |
---|---|---|
committer | Waldo Bastian <waldo.bastian@intel.com> | 2007-12-06 16:04:09 -0800 |
commit | f8ccff8acbf7579ded1902789695a1023334a3fe (patch) | |
tree | 8388085a8e2b1897c684e098b550c5e9a43b6702 /test | |
parent | 90abc96404f6a46a80fc5bc6bb9a2c23ab366936 (diff) |
Update to VA API 0.28
Diffstat (limited to 'test')
-rw-r--r-- | test/vainfo.c | 5 |
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); |