The last missing piece of EGLImage support has been pushed.
if (priv->allocator)
gst_object_unref (priv->allocator);
- if (allocator /* && GST_IS_GL_MEMORY_ALLOCATOR (allocator) FIXME EGLImage */ ) {
- priv->allocator = gst_object_ref (allocator);
+ if (allocator) {
+ if (!GST_IS_GL_MEMORY_ALLOCATOR (allocator)) {
+ gst_object_unref (allocator);
+ goto wrong_allocator;
+ } else {
+ priv->allocator = gst_object_ref (allocator);
+ }
} else {
priv->allocator =
GST_ALLOCATOR (gst_gl_memory_allocator_get_default (glpool->context));
"failed getting geometry from caps %" GST_PTR_FORMAT, caps);
return FALSE;
}
+wrong_allocator:
+ {
+ GST_WARNING_OBJECT (pool, "Incorrect allocator type for this pool");
+ return FALSE;
+ }
}
static gboolean