gessrc: Remove timeline from self when disposing

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4882>
This commit is contained in:
Thibault Saunier 2023-06-15 17:38:09 -04:00 committed by GStreamer Marge Bot
parent 56e636b60c
commit 50393a809d

View file

@ -61,8 +61,10 @@ ges_base_bin_dispose (GObject * object)
GESBaseBin *self = GES_BASE_BIN (object); GESBaseBin *self = GES_BASE_BIN (object);
GESBaseBinPrivate *priv = ges_base_bin_get_instance_private (self); GESBaseBinPrivate *priv = ges_base_bin_get_instance_private (self);
if (priv->timeline) if (priv->timeline) {
gst_bin_remove (GST_BIN (self), GST_ELEMENT (priv->timeline));
gst_clear_object (&priv->timeline); gst_clear_object (&priv->timeline);
}
} }
static void static void