[410/906] gstglmixer: inactivate shared gl context before to release ours
authorJulien Isorce <julien.isorce@gmail.com>
Wed, 16 Dec 2009 00:33:39 +0000 (01:33 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:23 +0000 (19:31 +0000)
commit4874b3530479974670e7978eb51eca6319e8391d
tree6dde7e37a7c3c661df822634be647925e78b41a0
parent727191d7b6c4a8531ecf44f1928a69a2f9e6c1c4
[410/906] gstglmixer: inactivate shared gl context before to release ours

First, inactivate shared gl contexts known by each sink pad.
Then, destroy the gl context known by the glmixer.
Finally, re-activate shared gl contexts.
This is to satisfy the fact that no shared gl context must be current
when an opengl context is destroyed.
Moreover the application may hang or crash without those steps.
gst-libs/gst/gl/gstglmixer.c