summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2021-01-05 11:52:15 -0300
committerThibault Saunier <tsaunier@igalia.com>2021-01-05 11:52:43 -0300
commitd1aa359c2b6276db0c005685503e36c44a399425 (patch)
treef8fbf1a95f54c591d297b419140488592abbad98
parentbdfe6e4477d3ebbd6ff2a82135aacaa91ee5049f (diff)
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>
-rw-r--r--tools/ges-launcher.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ges-launcher.c b/tools/ges-launcher.c
index 2549c9da..cf56b83f 100644
--- a/tools/ges-launcher.c
+++ b/tools/ges-launcher.c
@@ -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) {