i965_drv_video: set the number of elements in a buffer store. 05/705/1
authorOsin, Alexander I <alexander.i.osin@intel.com>
Wed, 9 Feb 2011 01:17:17 +0000 (09:17 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 9 Feb 2011 01:17:17 +0000 (09:17 +0800)
i965_drv_video/i965_drv_video.c

index ce2d4bd..e047057 100644 (file)
@@ -927,6 +927,9 @@ i965_BufferSetNumElements(VADriverContextP ctx,
         vaStatus = VA_STATUS_ERROR_UNKNOWN;
     } else {
         obj_buffer->num_elements = num_elements;
+        if (obj_buffer->buffer_store != NULL) {
+            obj_buffer->buffer_store->num_elements = num_elements; 
+        }
     }
 
     return vaStatus;