mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
pipeline: Update caps only when rendering as comment suggests
We used to update caps for any more because of missing brackets.
This commit is contained in:
parent
05115da59e
commit
561fcfb576
1 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue