[705/906] x11: don't shutdown in _finalize
authorMatthew Waters <ystreet00@gmail.com>
Thu, 13 Jun 2013 06:04:40 +0000 (16:04 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:28 +0000 (19:31 +0000)
commit4f117323b8d4c89e5507db008a6a9275c64883c0
treebcc114b4bbf964bf688b69cd38edd17417e09912
parent761bc0156a3530c92d0fce68687c9100a2c61344
[705/906] x11: don't shutdown in _finalize

The window's loop could be still running when _finalize is called
and if we destroy the display connection it will never be closed.

Add _open and _close vfuncs to GstGLWindow so that subclasses can
start up and shutdown at the right time.
gst-libs/gst/gl/gstglwindow.c
gst-libs/gst/gl/gstglwindow.h
gst-libs/gst/gl/x11/gstglwindow_x11.c