From f94f53f87cfede19484cf923597d54bad2dca493 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 7 Aug 2009 16:51:49 +0200 Subject: [PATCH] Track: Add/Remove the GnlComposition from ourself. --- ges/ges-track.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ges/ges-track.c b/ges/ges-track.c index c3735c5ef6..0a8d4efdb6 100644 --- a/ges/ges-track.c +++ b/ges/ges-track.c @@ -59,7 +59,7 @@ ges_track_dispose (GObject * object) /* FIXME : Remove all TrackObjects ! */ if (track->composition) { - g_object_unref (track->composition); + gst_bin_remove (GST_BIN (object), track->composition); track->composition = NULL; } @@ -87,6 +87,9 @@ static void ges_track_init (GESTrack * self) { self->composition = gst_element_factory_make ("gnlcomposition", NULL); + + if (!gst_bin_add (GST_BIN (self), self->composition)) + GST_ERROR ("Couldn't add composition to bin !"); } GESTrack *