glcontext: add context is valid precondition to get_thread()

This commit is contained in:
Matthew Waters 2020-03-26 13:50:52 +11:00 committed by GStreamer Merge Bot
parent 785feed73f
commit 3a9fde7b24

View file

@ -801,6 +801,8 @@ gst_gl_context_get_thread (GstGLContext * context)
{
GThread *ret;
g_return_val_if_fail (GST_IS_GL_CONTEXT (context), NULL);
GST_OBJECT_LOCK (context);
ret = context->priv->active_thread;
if (ret)