Commit 75b522da authored by Edward Hervey's avatar Edward Hervey
Browse files

decodebin2: Actually dispose the unused ghostpads

parent 35c76b34
......@@ -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 (gst_caps_can_intersect (raw, caps)) {
gst_caps_unref (raw);
gst_object_unref (dpad);
goto discarded_type;
}
gst_caps_unref (raw);
......@@ -1462,8 +1463,10 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
}
gst_caps_unref (rawcaps);
if (dontuse)
if (dontuse) {
gst_object_unref (dpad);
goto discarded_type;
}
}
/* 1.f else continue autoplugging something from the list. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment