[633/906] display: fail properly in context creation in order to minimize a race...
authorMatthew Waters <ystreet00@gmail.com>
Wed, 19 Dec 2012 03:32:20 +0000 (14:32 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:26 +0000 (19:31 +0000)
commitdb236c510fbac6c43d29b61657ec5fe22deb8e74
tree0e29ab4040c987f3b708a7e229ac1a6c416ddb1f
parent12b045af81cde0e711f8a229b6e00459ecaed64d
[633/906] display: fail properly in context creation in order to minimize a race condition

previously, on context creation, when we failed to get a valid context
we would still atempt to run the window mainloop as well as setting an error
on the display. This would cause the calling element to finalize the display
and therefore attempt to quit the window mainloop.  However the mainloop
may not have started running.  Thus when the window mainloop ran it would
never a get a quit message and never end.
gst-libs/gst/gl/gstgldisplay.c