From 8c622b18f6ae39be568a61164793ec0598886772 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 9 Jul 2020 11:10:41 -0400 Subject: [PATCH] pipeline: Restrict the presence only if the user didn't explicitly provided one Part-of: --- ges/ges-pipeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ges/ges-pipeline.c b/ges/ges-pipeline.c index e714aa5004..c57cc37652 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); } }