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)
committerJulien Isorce <j.isorce@samsung.com>
Thu, 1 Dec 2016 10:50:05 +0000 (10:50 +0000)
commit119955bea4acd1660b6a2403c956b686ac0d2d14
tree489b1475d9debebb0ce7a59b9cefb7b853669215
parentc03a4829acf6ef5cf8fa2f272a87212a1c8ab539
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