gstglcontext: is_shared should return FALSE if no group
authorJulien Isorce <j.isorce@samsung.com>
Wed, 30 Nov 2016 09:22:17 +0000 (09:22 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:25 +0000 (19:32 +0000)
commit22e78529dde0b706c33f7e471dbce4cf1d6b9369
tree839822895c5e01f16a9d4d5b122802545a3330aa
parentbf7b608728521a408cf892e11593cfb7e60427f5
gstglcontext: is_shared should return FALSE if no group

If a sub class of GstGLContext does not create a group
then it currently crashes:

0 g_atomic_int_get (&share->refcount)
1 _context_share_group_is_shared (context->priv->sharegroup)
2 gst_gl_context_is_shared
3 _default_set_sync_gl

https://bugzilla.gnome.org/show_bug.cgi?id=774518
gst-libs/gst/gl/gstglcontext.c