Skip to content

plugins: No need to add system allocator to allocation query.

He Junyan requested to merge He_Junyan/gstreamer-vaapi:for_merge_2 into master

gst_vaapi_plugin_base_propose_allocation function which is used by all vaapi plugins will set system memory allocator as 0, and vaapi memory allocator as 1 for allocation query. This cause a problem. Some plugin like basesrc do not try the vaapi memory allocator when config the video pool and just re-create a new vaapi memory allocation. The parameters of allocator is not right at that time. For example, we lose GST_VAAPI_IMAGE_USAGE_FLAG_DIRECT_UPLOAD flag and fail to upload surface.

#121 (closed)

Signed-off-by: He Junyan junyan.he@hotmail.com

Merge request reports