gldisplay: make readding the same context a no-op
authorMatthew Waters <matthew@centricular.com>
Mon, 7 Mar 2016 13:35:22 +0000 (00:35 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 7 Mar 2016 15:06:13 +0000 (02:06 +1100)
commitaa6062945c9e4e293332cfc6ab1832647c09008e
tree0062b6dad3aac5d50090be285d99d0fa38368372
parent5f925a15805dd2384436c36ec1cc4248f8bb370b
gldisplay: make readding the same context a no-op

With e38af2304427db908a16bbae0e60aa68be1ba5b5 returning the correct contexts,
gst_gl_display_add_context() was susceptible to causing infinte loops when
adding the same GstGLContext more than once.  Fix and add a test for
gst_gl_display_add_context().

Fixes glvideomixer gst-validate tests.
gst-libs/gst/gl/gstgldisplay.c
tests/check/libs/gstglcontext.c