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)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:17 +0000 (19:32 +0000)
commiteb1a9bb9b0726f5c63023c1ce304c7b8a30b5ed8
treec9b78bdb0969d1584b93110525489e4514ceac94
parent95415270f0db56f4e80e8a456b27c50466c9bcc7
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