glbasefilter: Need to check the display before lock it.
authorHe Junyan <junyan.he@intel.com>
Fri, 6 Nov 2020 07:36:01 +0000 (15:36 +0800)
committerHe Junyan <junyan.he@intel.com>
Thu, 3 Dec 2020 16:23:38 +0000 (00:23 +0800)
commit1146a7e3a0f74bf92b5d55e82c827d9862c29fdd
treeb96c79ac1c409277bd13d56e607bb1992f7fa169
parent089a1f56b04152566b2eaf2d19be97676b3f7861
glbasefilter: Need to check the display before lock it.

In find_gl_context_unlocked(), the display of filter may be NULL
and can cause crash if we directly access and lock it.

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