validate: transcoding: fix caps leaks
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 24 May 2016 14:05:17 +0000 (14:05 +0000)
committerThibault Saunier <tsaunier@gnome.org>
Tue, 24 May 2016 14:28:53 +0000 (10:28 -0400)
The 'all_raw_caps' list is never used and was just leaking caps.

Reviewed-by: Thibault Saunier <tsaunier@gnome.org>
Differential Revision: https://phabricator.freedesktop.org/D979

validate/tools/gst-validate-transcoding.c

index 632081a..54b4e91 100644 (file)
@@ -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));