diff options
Diffstat (limited to 'ext/gl/gstglimagesink.c')
-rw-r--r-- | ext/gl/gstglimagesink.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index b2a1d07c4..1311319c3 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -933,9 +933,12 @@ gst_glimage_sink_propose_allocation (GstBaseSink * bsink, GstQuery * query) gst_object_unref (allocator); #if GST_GL_HAVE_PLATFORM_EGL - allocator = gst_allocator_find (GST_EGL_IMAGE_MEMORY_TYPE); - gst_query_add_allocation_param (query, allocator, ¶ms); - gst_object_unref (allocator); + if (gst_gl_context_check_feature (glimage_sink->context, + "EGL_KHR_image_base")) { + allocator = gst_allocator_find (GST_EGL_IMAGE_MEMORY_TYPE); + gst_query_add_allocation_param (query, allocator, ¶ms); + gst_object_unref (allocator); + } #endif return TRUE; |