glimagesink doesn't close the windows it created when pipeline state is set to GST_STATE_NULL, and then pipeline is unref'd
if the OpenGL window created by glimagesink is open, closing and freeing the pipeline causes a segfault, if the underlying application is still running.
(on MacOS 10.15, with GStreamer.framework 18.4, cocoa)
my code below works with other videosinks
gst_app_src_end_of_stream (GST_APP_SRC(renderer->appsrc)); gst_object_unref(renderer->bus); gst_element_set_state (renderer->pipeline, GST_STATE_NULL); gst_object_unref (renderer->pipeline);
I have no idea how to use gst_overlay to get the handle of a window that glimagesink creates by itself, and maybe try to close the OpenGL window directly.