From: Thibault Saunier Date: Tue, 5 Jan 2021 14:52:15 +0000 (-0300) Subject: launch: Ensure to add required ref to profiles from project X-Git-Tag: 1.19.3~493^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1aa359c2b6276db0c005685503e36c44a399425;p=platform%2Fupstream%2Fgstreamer.git launch: Ensure to add required ref to profiles from project We were unreffing something we were not owning Part-of: --- diff --git a/tools/ges-launcher.c b/tools/ges-launcher.c index 2549c9d..cf56b83 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) {