mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
gstglupload: relax EGL context check
Check for GST_GL_PLATFORM_EGL enum instead of type GstGLContextEGL. https://bugzilla.gnome.org/show_bug.cgi?id=774518
This commit is contained in:
parent
22e78529dd
commit
7da132c327
1 changed files with 2 additions and 1 deletions
|
@ -579,7 +579,8 @@ _dma_buf_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
|
|||
meta = gst_buffer_get_video_meta (buffer);
|
||||
|
||||
/* dmabuf upload is only supported with EGL contexts. */
|
||||
if (!GST_IS_GL_CONTEXT_EGL (dmabuf->upload->context))
|
||||
if (gst_gl_context_get_gl_platform (dmabuf->upload->context) !=
|
||||
GST_GL_PLATFORM_EGL)
|
||||
return FALSE;
|
||||
|
||||
if (!gst_gl_context_check_feature (dmabuf->upload->context,
|
||||
|
|
Loading…
Reference in a new issue