*
* @available_apis must not be %GST_GL_API_NONE or %GST_GL_API_ANY
*
- * Returns: (transfer full): a #GstGLContext wrapping @handle
+ * Returns: (transfer full) (nullable): a #GstGLContext wrapping @handle
*
* Since: 1.4
*/
context_wrap = g_object_new (GST_TYPE_GL_WRAPPED_CONTEXT, NULL);
gst_object_ref_sink (context_wrap);
- if (!context_wrap) {
- /* subclass returned a NULL context */
- GST_ERROR ("Could not wrap existing context");
-
- return NULL;
- }
-
context = (GstGLContext *) context_wrap;
context->display = gst_object_ref (display);