mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
free mixer in dispose separately from sink pads
This commit is contained in:
parent
5058f83381
commit
0d4ff040d2
1 changed files with 7 additions and 3 deletions
|
@ -109,18 +109,22 @@ ges_track_video_transition_dispose (GObject * object)
|
||||||
self->control_source = NULL;
|
self->control_source = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->mixer && self->sinka && self->sinkb) {
|
if (self->sinka && self->sinkb) {
|
||||||
GST_DEBUG ("releasing request pads for mixer");
|
GST_DEBUG ("releasing request pads for mixer");
|
||||||
gst_element_release_request_pad (self->mixer, self->sinka);
|
gst_element_release_request_pad (self->mixer, self->sinka);
|
||||||
gst_element_release_request_pad (self->mixer, self->sinkb);
|
gst_element_release_request_pad (self->mixer, self->sinkb);
|
||||||
gst_object_unref (self->mixer);
|
|
||||||
gst_object_unref (self->sinka);
|
gst_object_unref (self->sinka);
|
||||||
gst_object_unref (self->sinkb);
|
gst_object_unref (self->sinkb);
|
||||||
self->mixer = NULL;
|
|
||||||
self->sinka = NULL;
|
self->sinka = NULL;
|
||||||
self->sinkb = NULL;
|
self->sinkb = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self->mixer) {
|
||||||
|
GST_LOG ("unrefing mixer");
|
||||||
|
gst_object_unref (self->mixer);
|
||||||
|
self->mixer = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (ges_track_video_transition_parent_class)->dispose (object);
|
G_OBJECT_CLASS (ges_track_video_transition_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue