mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
decodebin2: Actually dispose the unused ghostpads
This commit is contained in:
parent
35c76b3409
commit
75b522dacf
1 changed files with 4 additions and 1 deletions
|
@ -1403,6 +1403,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
||||||
/* If the caps are raw, this just means we don't want to expose them */
|
/* If the caps are raw, this just means we don't want to expose them */
|
||||||
if (gst_caps_can_intersect (raw, caps)) {
|
if (gst_caps_can_intersect (raw, caps)) {
|
||||||
gst_caps_unref (raw);
|
gst_caps_unref (raw);
|
||||||
|
gst_object_unref (dpad);
|
||||||
goto discarded_type;
|
goto discarded_type;
|
||||||
}
|
}
|
||||||
gst_caps_unref (raw);
|
gst_caps_unref (raw);
|
||||||
|
@ -1462,9 +1463,11 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
||||||
}
|
}
|
||||||
gst_caps_unref (rawcaps);
|
gst_caps_unref (rawcaps);
|
||||||
|
|
||||||
if (dontuse)
|
if (dontuse) {
|
||||||
|
gst_object_unref (dpad);
|
||||||
goto discarded_type;
|
goto discarded_type;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* 1.f else continue autoplugging something from the list. */
|
/* 1.f else continue autoplugging something from the list. */
|
||||||
GST_LOG_OBJECT (pad, "Let's continue discovery on this pad");
|
GST_LOG_OBJECT (pad, "Let's continue discovery on this pad");
|
||||||
|
|
Loading…
Reference in a new issue