mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
vaapipluginbase: force dmabuf allocator if DMABuf caps feature
Instantiate all dmabuf allocator for src pad buffer pool if the src caps ask for memory:DMABuf feature. https://bugzilla.gnome.org/show_bug.cgi?id=755072
This commit is contained in:
parent
953afe9d17
commit
b6863e64b5
1 changed files with 6 additions and 0 deletions
|
@ -615,6 +615,12 @@ ensure_srcpad_allocator (GstVaapiPluginBase * plugin, GstVideoInfo * vinfo,
|
|||
GST_INFO_OBJECT (plugin, "enabling direct rendering in source allocator");
|
||||
}
|
||||
plugin->srcpad_allocator = allocator;
|
||||
} else if (caps && gst_vaapi_caps_feature_contains (caps,
|
||||
GST_VAAPI_CAPS_FEATURE_DMABUF)) {
|
||||
plugin->srcpad_allocator =
|
||||
create_dmabuf_srcpad_allocator (plugin, vinfo, FALSE);
|
||||
if (!plugin->srcpad_allocator)
|
||||
goto error_create_allocator;
|
||||
}
|
||||
|
||||
if (!plugin->srcpad_allocator) {
|
||||
|
|
Loading…
Reference in a new issue