From: Thibault Saunier Date: Fri, 20 Apr 2018 20:36:55 +0000 (-0300) Subject: pipeline: Update caps only when rendering as comment suggests X-Git-Tag: 1.19.3~493^2~717 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=561fcfb57678c1a27d586199b1190ef4513e1e79;p=platform%2Fupstream%2Fgstreamer.git pipeline: Update caps only when rendering as comment suggests We used to update caps for any more because of missing brackets. --- diff --git a/ges/ges-pipeline.c b/ges/ges-pipeline.c index 71c67d7..6d49ce2 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;