glupload: Only offer custom allocator with caps features
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 1 Dec 2015 23:09:25 +0000 (18:09 -0500)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:11 +0000 (19:32 +0000)
commit21df596b8bff7210cedc767f453546bdd4bb7b56
treeec7fc6e1083df8ac493c9237f5e33ab019a3fe0b
parent953be21a22a8fb012a7e8c1ff540ce698f1bdb0b
glupload: Only offer custom allocator with caps features

To use GLMemory and EGLImage allocators, one need to know the
libgstgl API. This is only expected if the associated caps features
have been negotiated. Generic element that otherwise receive those
allocators may fail, resulting in broken pieline. We don't want to
force all generic element to check if the allocator is a custom
allocator or a normal allocator (which implement the _alloc method).

https://bugzilla.gnome.org/show_bug.cgi?id=758877
gst-libs/gst/gl/gstglupload.c