gl/cocoa: Return a strong ref to the parent GstGLContext
authorJan Schmidt <jan@centricular.com>
Thu, 2 Feb 2023 12:20:04 +0000 (23:20 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 2 Feb 2023 18:20:42 +0000 (18:20 +0000)
commitf7fc9fd76ecad058c4463f6ebed31e286fc96fdd
tree31108fcb74d0eef1834323785f9bb6740927c185
parent1e34b3504428c76419b5c824544fdd3b4e427d9c
gl/cocoa: Return a strong ref to the parent GstGLContext

If the GstGLCAOpenGLLayer was initialized via a parent
context, make sure to ref the context before returning it
from getGLContext as all callers will unref it.

Follow up to !3729

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3885>
subprojects/gst-plugins-base/gst-libs/gst/gl/cocoa/gstglcaopengllayer.m