gldisplay: Mark `gst_gl_display_create_context()` `other_context` parameter as nullable
authorSebastian Dröge <sebastian@centricular.com>
Fri, 27 Jan 2023 14:22:06 +0000 (16:22 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 28 Jan 2023 17:32:54 +0000 (17:32 +0000)
See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/438

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3835>

subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcontext.c
subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c

index 4eac6b2..c04f955 100644 (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
index 2130eb7..bcc600e 100644 (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
  *