From: Guillaume Desmottes Date: Tue, 24 May 2016 14:05:17 +0000 (+0000) Subject: validate: transcoding: fix caps leaks X-Git-Tag: 1.19.3~491^2~1010 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c4dcae918b4a6b1fb004d02167c4a1d9141eff9;p=platform%2Fupstream%2Fgstreamer.git validate: transcoding: fix caps leaks The 'all_raw_caps' list is never used and was just leaking caps. Reviewed-by: Thibault Saunier Differential Revision: https://phabricator.freedesktop.org/D979 --- diff --git a/validate/tools/gst-validate-transcoding.c b/validate/tools/gst-validate-transcoding.c index 632081a..54b4e91 100644 --- a/validate/tools/gst-validate-transcoding.c +++ b/validate/tools/gst-validate-transcoding.c @@ -48,7 +48,6 @@ static GstElement *pipeline, *encodebin; static GstEncodingProfile *encoding_profile = NULL; static gboolean eos_on_shutdown = FALSE; static gboolean force_reencoding = FALSE; -static GList *all_raw_caps = NULL; static gboolean buffering = FALSE; static gboolean is_live = FALSE; @@ -682,7 +681,6 @@ _parse_encoding_profile (const gchar * option_name, const gchar * value, return FALSE; } - all_raw_caps = g_list_append (all_raw_caps, gst_caps_copy (caps)); if (g_str_has_prefix (strcaps_v[i], "audio/")) { profile = GST_ENCODING_PROFILE (gst_encoding_audio_profile_new (caps, preset_name, restrictioncaps, presence));