mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
glcontext: add context is valid precondition to get_thread()
This commit is contained in:
parent
785feed73f
commit
3a9fde7b24
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue