mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
track: mixing_operation is handled by its parent
Summary: Normally, mixing_operation is created and added to nlecomposition as a child element so it will be freed when nlecomposition is removed from a track. Reviewers: thiblahute Projects: #gstreamer_editing_services Differential Revision: https://phabricator.freedesktop.org/D319
This commit is contained in:
parent
d6b37d0f4d
commit
b9112cac48
1 changed files with 0 additions and 5 deletions
|
@ -467,9 +467,6 @@ ges_track_dispose (GObject * object)
|
|||
g_list_free_full (priv->gaps, (GDestroyNotify) free_gap);
|
||||
ges_nle_object_commit (track->priv->composition, TRUE);
|
||||
|
||||
if (priv->mixing_operation)
|
||||
gst_object_unref (priv->mixing_operation);
|
||||
|
||||
if (priv->composition) {
|
||||
gst_element_remove_pad (GST_ELEMENT (track), priv->srcpad);
|
||||
gst_bin_remove (GST_BIN (object), priv->composition);
|
||||
|
@ -892,8 +889,6 @@ ges_track_set_mixing (GESTrack * track, gboolean mixing)
|
|||
}
|
||||
|
||||
if (mixing) {
|
||||
/* increase ref count to hold the object */
|
||||
gst_object_ref (track->priv->mixing_operation);
|
||||
if (!ges_nle_composition_add_object (track->priv->composition,
|
||||
track->priv->mixing_operation)) {
|
||||
GST_WARNING_OBJECT (track, "Could not add the mixer to our composition");
|
||||
|
|
Loading…
Reference in a new issue