self->text = g_strdup (text);
+ /* FIXME : We need a much less crack way to find the trackobject to change */
trackobjects = ges_timeline_object_get_track_objects (object);
for (tmp = trackobjects; tmp; tmp = tmp->next) {
GESTrackObject *trackobject = (GESTrackObject *) tmp->data;
self->font_desc = g_strdup (font_desc);
+ /* FIXME : We need a much less crack way to find the trackobject to change */
trackobjects = ges_timeline_object_get_track_objects (object);
for (tmp = trackobjects; tmp; tmp = tmp->next) {
GESTrackObject *trackobject = (GESTrackObject *) tmp->data;
self->halign = halign;
+ /* FIXME : We need a much less crack way to find the trackobject to change */
trackobjects = ges_timeline_object_get_track_objects (object);
for (tmp = trackobjects; tmp; tmp = tmp->next) {
GESTrackObject *trackobject = (GESTrackObject *) tmp->data;
self->valign = valign;
+ /* FIXME : We need a much less crack way to find the trackobject to change */
trackobjects = ges_timeline_object_get_track_objects (object);
for (tmp = trackobjects; tmp; tmp = tmp->next) {
GESTrackObject *trackobject = (GESTrackObject *) tmp->data;
g_object_unref (GES_TRACK_OBJECT (tmp->data));
}
+ g_list_free (trackobjects);
}
static void
self->mute = mute;
/* Go over tracked objects, and update 'active' status on all audio objects */
+ /* FIXME : We need a much less crack way to find the trackobject to change */
trackobjects = ges_timeline_object_get_track_objects (object);
for (tmp = trackobjects; tmp; tmp = tmp->next) {
GESTrackObject *trackobject = (GESTrackObject *) tmp->data;
GList *tmp, *trackobjects;
GESTimelineTransition *trself = (GESTimelineTransition *) self;
+ /* FIXME : We need a much less crack way to find the trackobject to change */
trackobjects = ges_timeline_object_get_track_objects (self);
for (tmp = trackobjects; tmp; tmp = tmp->next) {
GESTrackVideoTransition *obj;
if (GES_IS_TRACK_VIDEO_TRANSITION (tmp->data)) {
obj = (GESTrackVideoTransition *) tmp->data;
if (!ges_track_video_transition_set_type (obj, value))
- return;
+ goto beach;
}
-
- g_object_unref (GES_TRACK_OBJECT (tmp->data));
}
- g_list_free (trackobjects);
trself->vtype = value;
+
+beach:
+ g_list_foreach (trackobjects, (GFunc) g_object_unref, NULL);
+ g_list_free (trackobjects);
return;
}