gldisplay: Mark gst_gl_display_create_context() other_context parameter as nullable

See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/438

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3825>
This commit is contained in:
Sebastian Dröge 2023-01-27 16:22:06 +02:00
parent f41497713e
commit c5d211d45a
2 changed files with 3 additions and 3 deletions

View file

@ -1019,8 +1019,8 @@ gst_gl_context_can_share (GstGLContext * context, GstGLContext * other_context)
/**
* gst_gl_context_create:
* @context: a #GstGLContext:
* @other_context: (allow-none): a #GstGLContext to share OpenGL objects with
* @error: (allow-none): a #GError
* @other_context: (nullable): a #GstGLContext to share OpenGL objects with
* @error: a #GError
*
* Creates an OpenGL context with the specified @other_context as a context
* to share shareable OpenGL objects with. See the OpenGL specification for

View file

@ -620,7 +620,7 @@ gst_context_get_gl_display (GstContext * context, GstGLDisplay ** display)
/**
* gst_gl_display_create_context:
* @display: a #GstGLDisplay
* @other_context: (transfer none): other #GstGLContext to share resources with.
* @other_context: (transfer none) (nullable): other #GstGLContext to share resources with.
* @p_context: (transfer full) (out): resulting #GstGLContext
* @error: resulting #GError
*