summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-07-09 11:10:41 -0400
committerThibault Saunier <tsaunier@igalia.com>2020-07-30 18:44:13 -0400
commit8c622b18f6ae39be568a61164793ec0598886772 (patch)
treee31ca335016e2477ee65fdf773468fb462fde3ff
parente6683f0c197f0adfef91d59c731ad1ae3be35af7 (diff)
pipeline: Restrict the presence only if the user didn't explicitly provided one
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/198>
-rw-r--r--ges/ges-pipeline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ges/ges-pipeline.c b/ges/ges-pipeline.c
index e714aa50..c57cc376 100644
--- a/ges/ges-pipeline.c
+++ b/ges/ges-pipeline.c
@@ -1105,7 +1105,8 @@ ges_pipeline_set_render_settings (GESPipeline * pipeline,
GST_DEBUG_OBJECT (pipeline, "Setting presence to 1!");
gst_encoding_profile_set_single_segment (tmpprofiles->data, TRUE);
- gst_encoding_profile_set_presence (tmpprofiles->data, 1);
+ if (gst_encoding_profile_get_presence (tmpprofiles->data) == 0)
+ gst_encoding_profile_set_presence (tmpprofiles->data, 1);
gst_encoding_profile_set_allow_dynamic_output (tmpprofiles->data, FALSE);
}
}