plugins: use VA allocator by default on raw caps

Instead of using dmabuf allocator in source pad, when raw video caps
are negotiated, it uses VA allocator as before, since it is stable
in more use cases, for example transcoding, and more backend drivers.

Dmabuf allocator is only used when dmabuf caps feature is negotiated.

Part-of: <!352>
parent 13d090b5
Pipeline #173497 waiting for manual action with stages
in 1 minute and 16 seconds
......@@ -593,11 +593,7 @@ ensure_srcpad_allocator (GstVaapiPluginBase * plugin, GstPad * srcpad,
goto valid_allocator;
srcpriv->allocator = NULL;
if (caps && gst_caps_is_video_raw (caps)) {
GstAllocator *allocator = create_dmabuf_srcpad_allocator (plugin, vinfo,
srcpriv->allocator = allocator;
} else if (caps && gst_vaapi_caps_feature_contains (caps,
if (caps && gst_vaapi_caps_feature_contains (caps,
srcpriv->allocator = create_dmabuf_srcpad_allocator (plugin, vinfo, FALSE);
if (!srcpriv->allocator)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment