mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
GESTimelinePipeline: finalize => dispose
We want to release our objects before the parent GstBin class does so.
This commit is contained in:
parent
e15f981c5c
commit
87087b013a
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ static OutputChain *new_output_chain_for_track (GESTimelinePipeline * self,
|
||||||
GESTrack * track);
|
GESTrack * track);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ges_timeline_pipeline_finalize (GObject * object)
|
ges_timeline_pipeline_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
GESTimelinePipeline *self = GES_TIMELINE_PIPELINE (object);
|
GESTimelinePipeline *self = GES_TIMELINE_PIPELINE (object);
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ ges_timeline_pipeline_finalize (GObject * object)
|
||||||
gst_object_unref (self->playsink);
|
gst_object_unref (self->playsink);
|
||||||
self->playsink = NULL;
|
self->playsink = NULL;
|
||||||
}
|
}
|
||||||
G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->finalize (object);
|
G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -73,7 +73,7 @@ ges_timeline_pipeline_class_init (GESTimelinePipelineClass * klass)
|
||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||||
|
|
||||||
object_class->finalize = ges_timeline_pipeline_finalize;
|
object_class->dispose = ges_timeline_pipeline_dispose;
|
||||||
|
|
||||||
element_class->change_state =
|
element_class->change_state =
|
||||||
GST_DEBUG_FUNCPTR (ges_timeline_pipeline_change_state);
|
GST_DEBUG_FUNCPTR (ges_timeline_pipeline_change_state);
|
||||||
|
|
Loading…
Reference in a new issue