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)
committerAlessandro Decina <alessandro.d@gmail.com>
Wed, 10 Feb 2016 02:11:35 +0000 (13:11 +1100)
commit2c0aca52a8c7f3c7f1bd21a40acb19f53e7026d9
tree948abab87375ec5433b29d3dfb1191686b92bb35
parent2b457a46a06c9ada62942aa1b1773fc59530523a
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