summaryrefslogtreecommitdiff
path: root/ges
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2014-11-25 18:46:03 +0100
committerThibault Saunier <tsaunier@gnome.org>2014-12-06 10:34:17 +0100
commit068c20ff604a4e8de3473bbebd844a56ba8ce501 (patch)
tree7c5589a2fe9776adb5941b69463c6381c7ad8221 /ges
parentc7cceae1286a97d2556f6c3f9448bb1080d371ff (diff)
pipeline: Dot not check for chain->tee twice
Diffstat (limited to 'ges')
-rw-r--r--ges/ges-pipeline.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ges/ges-pipeline.c b/ges/ges-pipeline.c
index d6d7c7d5..ba072112 100644
--- a/ges/ges-pipeline.c
+++ b/ges/ges-pipeline.c
@@ -684,8 +684,11 @@ _link_track (GESPipeline * self, GESTrack * track)
if (!(chain = get_output_chain_for_track (self, track)))
chain = new_output_chain_for_track (self, track);
- if (chain->tee)
+ if (chain->tee) {
+ GST_INFO_OBJECT (self, "Chain is already built");
+
return;
+ }
chain->query_position_id =
g_signal_connect (ges_track_get_composition (track), "query-position",
@@ -695,12 +698,9 @@ _link_track (GESPipeline * self, GESTrack * track)
gst_object_unref (pad);
/* Adding tee */
-
- if (!chain->tee) {
- chain->tee = gst_element_factory_make ("tee", NULL);
- gst_bin_add (GST_BIN_CAST (self), chain->tee);
- gst_element_sync_state_with_parent (chain->tee);
- }
+ chain->tee = gst_element_factory_make ("tee", NULL);
+ gst_bin_add (GST_BIN_CAST (self), chain->tee);
+ gst_element_sync_state_with_parent (chain->tee);
/* Linking pad to tee */
sinkpad = gst_element_get_static_pad (chain->tee, "sink");