mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
GstGtkGLSink: fix possible warning in finalize
If the element is finalized before going in READY state the widget could still be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=751104
This commit is contained in:
parent
cd47556351
commit
72b48a39d8
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ gst_gtk_gl_sink_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
GstGtkGLSink *gtk_sink = GST_GTK_GL_SINK (object);;
|
GstGtkGLSink *gtk_sink = GST_GTK_GL_SINK (object);;
|
||||||
|
|
||||||
g_object_unref (gtk_sink->widget);
|
g_clear_object (>k_sink->widget);
|
||||||
|
|
||||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue