gstglcontext: micro optimization to gst_gl_context_thread_add
authorAlessandro Decina <alessandro.d@gmail.com>
Wed, 10 Feb 2016 02:08:43 +0000 (13:08 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:16 +0000 (19:32 +0000)
commit7e1a42ce55591c1062d48ad55a15c2b6e733aa53
treeab386953731d4e175617005a153e42e7fef0ab0d
parentfb34d8a04b1174b467ccde2bcaabfa5d5a3bef43
gstglcontext: micro optimization to gst_gl_context_thread_add

Invoke the callback right away when called on the context thread. Removes
overhead when nesting libgstgl calls (for example when working with the sync
meta).
gst-libs/gst/gl/gstglcontext.c