encodebin: fix list leak when requesting a new pad

https://bugzilla.gnome.org/show_bug.cgi?id=780769
This commit is contained in:
Vincent Penquerc'h 2017-03-31 15:59:19 +01:00
parent 69a10f67a5
commit 9c8e700b91

View file

@ -755,6 +755,7 @@ request_pad_for_stream (GstEncodeBin * encodebin, GType ptype,
if (!sgroup)
goto no_stream_group;
g_list_free (not_found_encoder_profs);
return sgroup->ghostpad;
no_stream_profile: