gl: Mark `gst_gl_context_new_wrapped()` return value as `nullable`
authorSebastian Dröge <sebastian@centricular.com>
Thu, 29 Dec 2022 09:02:10 +0000 (11:02 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 29 Dec 2022 09:03:53 +0000 (09:03 +0000)
commit19603248c22243bbbc74992e5e7c878c02ab4679
tree2d516281e965dcc3bc7358c49ec265b6a3e7c6d4
parentb713c141e0142fd4de5f679cf469def23c0a75a2
gl: Mark `gst_gl_context_new_wrapped()` return value as `nullable`

If a GL context is requested for which no API support is compiled in
then `NULL` is returned.

Also remove a useless `NULL` check: `g_object_new()` can't possibly
return `NULL`, ever.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3656>
subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcontext.c