mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
Track: Add/Remove the GnlComposition from ourself.
This commit is contained in:
parent
f2851c3473
commit
f94f53f87c
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,7 @@ ges_track_dispose (GObject * object)
|
||||||
/* FIXME : Remove all TrackObjects ! */
|
/* FIXME : Remove all TrackObjects ! */
|
||||||
|
|
||||||
if (track->composition) {
|
if (track->composition) {
|
||||||
g_object_unref (track->composition);
|
gst_bin_remove (GST_BIN (object), track->composition);
|
||||||
track->composition = NULL;
|
track->composition = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,6 +87,9 @@ static void
|
||||||
ges_track_init (GESTrack * self)
|
ges_track_init (GESTrack * self)
|
||||||
{
|
{
|
||||||
self->composition = gst_element_factory_make ("gnlcomposition", NULL);
|
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 *
|
GESTrack *
|
||||||
|
|
Loading…
Reference in a new issue