summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-04-20 17:36:55 -0300
committerThibault Saunier <tsaunier@igalia.com>2018-05-14 10:50:23 -0400
commit06c3fcdc8b73dfe827562a426a78ae11bafdc128 (patch)
tree30391f279bec59cd41ab987687667496c93e719b
parent37188fe3cf81a22090920cf3403c425943552e51 (diff)
pipeline: Update caps only when rendering as comment suggests
We used to update caps for any more because of missing brackets.
-rw-r--r--ges/ges-pipeline.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/ges/ges-pipeline.c b/ges/ges-pipeline.c
index 71c67d7c..6d49ce2a 100644
--- a/ges/ges-pipeline.c
+++ b/ges/ges-pipeline.c
@@ -555,13 +555,14 @@ ges_pipeline_change_state (GstElement * element, GstStateChange transition)
goto done;
}
if (self->priv->mode & (GES_PIPELINE_MODE_RENDER |
- GES_PIPELINE_MODE_SMART_RENDER))
+ GES_PIPELINE_MODE_SMART_RENDER)) {
GST_DEBUG ("rendering => Updating pipeline caps");
- /* Set caps on all tracks according to profile if present */
- if (!ges_pipeline_update_caps (self)) {
- GST_ERROR_OBJECT (element, "Error setting the caps for rendering");
- ret = GST_STATE_CHANGE_FAILURE;
- goto done;
+ /* Set caps on all tracks according to profile if present */
+ if (!ges_pipeline_update_caps (self)) {
+ GST_ERROR_OBJECT (element, "Error setting the caps for rendering");
+ ret = GST_STATE_CHANGE_FAILURE;
+ goto done;
+ }
}
_link_tracks (self);
break;