mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
GESTimelinePipeline: Only remove the playsink if it was used
This commit is contained in:
parent
39a709b6b4
commit
a17900813a
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ ges_timeline_pipeline_finalize (GObject * object)
|
||||||
GESTimelinePipeline *self = GES_TIMELINE_PIPELINE (object);
|
GESTimelinePipeline *self = GES_TIMELINE_PIPELINE (object);
|
||||||
|
|
||||||
if (self->playsink) {
|
if (self->playsink) {
|
||||||
gst_bin_remove (GST_BIN (object), self->playsink);
|
if (self->mode & (TIMELINE_MODE_PREVIEW))
|
||||||
|
gst_bin_remove (GST_BIN (object), self->playsink);
|
||||||
gst_object_unref (self->playsink);
|
gst_object_unref (self->playsink);
|
||||||
self->playsink = NULL;
|
self->playsink = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue