pipeline: Ensure timeline state to be NULL on dispose

The GESTimeline's state might not be synced with parent
This commit is contained in:
Seungha Yang 2019-01-09 17:11:37 +09:00
parent fd10d69bc5
commit 3b0da0611c

View file

@ -278,6 +278,7 @@ ges_pipeline_dispose (GObject * object)
_timeline_track_added_cb, self);
g_signal_handlers_disconnect_by_func (self->priv->timeline,
_timeline_track_removed_cb, self);
gst_element_set_state (GST_ELEMENT (self->priv->timeline), GST_STATE_NULL);
}
G_OBJECT_CLASS (ges_pipeline_parent_class)->dispose (object);