mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
validate: transcoding: fix caps leaks
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
This commit is contained in:
parent
63d4987341
commit
2c4dcae918
1 changed files with 0 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue