glutils: use gst_element_set_context for setting display/other_context
authorMatthew Waters <matthew@centricular.com>
Tue, 29 Sep 2015 15:53:53 +0000 (01:53 +1000)
committerMatthew Waters <matthew@centricular.com>
Wed, 30 Sep 2015 02:39:47 +0000 (12:39 +1000)
commit6fc9630a910ef1f87739a736f172ca082f6bd4de
tree9587001063211f247b1680fa155d719930c03a73
parent90b0383638e9eda235b60924a0a48e0ac0ae98e8
glutils: use gst_element_set_context for setting display/other_context

1. So we get tracking inside GstElement properly when e.g. adding to a bin
2. Removes redundant code.  Now only one place where
   GstContext->GstGLDisplay/GstGLContext transformation occurs
3. Fixes a memory leak in the process
4. Make the retrieval of debug categories thread safe
gst-libs/gst/gl/gstglutils.c