{
GESTimelineElement *self = GES_TIMELINE_ELEMENT (object);
+ if (self->priv->children_props)
+ g_hash_table_unref (self->priv->children_props);
+
g_clear_object (&self->priv->copied_from);
}
gst_pad_link (pad, capsfilter_sink);
gst_object_unref (capsfilter_sink);
+ gst_object_unref (pad);
capsfilter_src = gst_element_get_static_pad (priv->capsfilter, "src");
/* ghost the pad */
nleobject = gst_element_factory_make ("nleoperation", "mixing-operation");
if (!gst_bin_add (GST_BIN (nleobject), mixer)) {
GST_WARNING_OBJECT (self, "Could not add the mixer to our composition");
+ gst_object_unref (mixer);
gst_object_unref (nleobject);
return;
if (self->priv->mixing) {
if (!ges_nle_composition_add_object (self->priv->composition, nleobject)) {
GST_WARNING_OBJECT (self, "Could not add the mixer to our composition");
+ gst_object_unref (nleobject);
return;
}
}
- self->priv->mixing_operation = gst_object_ref (nleobject);
+ self->priv->mixing_operation = nleobject;
} else {
GST_INFO_OBJECT (self, "No way to create a main mixer");
pos->height = pos->track_height;
}
- GST_DEBUG_OBJECT (pos, "setting caps : %s", gst_caps_to_string (caps));
+ GST_DEBUG_OBJECT (caps, "setting caps");
g_object_set (pos->capsfilter, "caps", caps, NULL);