launch: Ensure to add required ref to profiles from project

We were unreffing something we were not owning

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/224>
This commit is contained in:
Thibault Saunier 2021-01-05 11:52:15 -03:00
parent bdfe6e4477
commit d1aa359c2b

View file

@ -493,6 +493,9 @@ _set_rendering_details (GESLauncher * self)
gst_encoding_profile_get_name (profiles->data)) == 0)
prof = profiles->data;
}
if (prof)
prof = gst_object_ref (prof);
}
if (!prof) {