glHandleSetContext

Helper function for implementing #GstElementClass.set_context() in OpenGL capable elements.

Retrieve's the #GstGLDisplay or #GstGLContext in context and places the result in display or other_context respectively.

Parameters

element gst.element.Element

a #GstElement

context gst.context.Context

a #GstContext

display gstgl.gldisplay.GLDisplay

location of a #GstGLDisplay

otherContext gstgl.glcontext.GLContext

location of a #GstGLContext

Return Value

Type: bool

whether the display or other_context could be set successfully