mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 15:22:11 +02:00
gst-plugin: Avoid GTK crash after context is destroyed
It seems GTK continues using created contexts, so we cannot unref it here. Looking at GTK sink implementation for GtkVideo, I see that they do not unref it either, but since we use surfaceless context it would be probably better to have a static GstDisplay and reuse the same context in future.
This commit is contained in:
@@ -473,7 +473,12 @@ gst_clapper_gl_context_handler_finalize (GObject *object)
|
||||
|
||||
gst_clear_object (&self->gst_display);
|
||||
gst_clear_object (&self->wrapped_context);
|
||||
gst_clear_object (&self->gst_context);
|
||||
|
||||
/* FIXME: It seems GTK continues using created contexts, so we cannot unref
|
||||
* it here. Looking at GTK sink implementation for GtkVideo, I see that they
|
||||
* do not unref it either, but since we use surfaceless context it would be
|
||||
* probably better to have a static GstDisplay and reuse the same context. */
|
||||
//gst_clear_object (&self->gst_context);
|
||||
|
||||
GST_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
|
||||
}
|
||||
|
Reference in New Issue
Block a user