From 0476de6baac13ee2898558701801e9cdb7186140 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 18 Nov 2009 11:42:42 +0800 Subject: Fix vaQueryImageFormats() to return 0 image formats supported at this time. --- i965_drv_video/i965_drv_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c index 375d532..8d28547 100644 --- a/i965_drv_video/i965_drv_video.c +++ b/i965_drv_video/i965_drv_video.c @@ -346,6 +346,9 @@ i965_QueryImageFormats(VADriverContextP ctx, VAImageFormat *format_list, /* out */ int *num_formats) /* out */ { + if (num_formats) + *num_formats = 0; + return VA_STATUS_SUCCESS; } -- cgit v1.2.3