mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
decodebin3: Don't leak filter caps
Introduced by previous commit See https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/933 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/934>
This commit is contained in:
parent
32a4953882
commit
929d2bca09
1 changed files with 3 additions and 1 deletions
|
@ -143,12 +143,14 @@ static GstCaps *
|
|||
get_parser_caps_filter (GstDecodebin3 * dbin, GstCaps * caps)
|
||||
{
|
||||
GList *tmp;
|
||||
GstCaps *filter_caps = gst_caps_new_empty ();
|
||||
GstCaps *filter_caps;
|
||||
|
||||
/* If no filter was provided, it can handle anything */
|
||||
if (!caps || gst_caps_is_any (caps))
|
||||
return gst_caps_new_any ();
|
||||
|
||||
filter_caps = gst_caps_new_empty ();
|
||||
|
||||
g_mutex_lock (&dbin->factories_lock);
|
||||
gst_decode_bin_update_factories_list (dbin);
|
||||
for (tmp = dbin->decoder_factories; tmp; tmp = tmp->next) {
|
||||
|
|
Loading…
Reference in a new issue