From 2c4dcae918b4a6b1fb004d02167c4a1d9141eff9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 24 May 2016 14:05:17 +0000 Subject: [PATCH] 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 --- validate/tools/gst-validate-transcoding.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/validate/tools/gst-validate-transcoding.c b/validate/tools/gst-validate-transcoding.c index 632081abdd..54b4e91a1a 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));