When requesting a glcontext (regardless of thread), the result was correct.
However, when requesting current glcontext on a specific thread, it could
come up with a glcontext active on another thread.
https://bugzilla.gnome.org/show_bug.cgi?id=763168
continue;
}
+ if (thread == NULL)
+ return context;
+
context_thread = gst_gl_context_get_thread (context);
- if (thread != NULL && thread == context_thread) {
+ if (thread != context_thread) {
g_thread_unref (context_thread);
gst_object_unref (context);
prev = l;