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>
This commit is contained in:
Thibault Saunier 2020-07-09 11:10:41 -04:00
parent e6683f0c19
commit 8c622b18f6

View file

@ -1105,6 +1105,7 @@ ges_pipeline_set_render_settings (GESPipeline * pipeline,
GST_DEBUG_OBJECT (pipeline, "Setting presence to 1!");
gst_encoding_profile_set_single_segment (tmpprofiles->data, TRUE);
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);
}