Commit 65d09c14 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

decodebin: Don't check twice if the decode chain is complete in pad_added_cb()

expose_pad() already does the same.
parent 001c7f04
......@@ -2930,18 +2930,6 @@ pad_added_cb (GstElement * element, GstPad * pad, GstDecodeChain * chain)
if (caps)
gst_caps_unref (caps);
if (dbin->decode_chain) {
if (gst_decode_chain_is_complete (dbin->decode_chain)) {
"That was the last dynamic object, now attempting to expose the group");
if (!gst_decode_bin_expose (dbin))
GST_WARNING_OBJECT (dbin, "Couldn't expose group");
} else {
GST_DEBUG_OBJECT (dbin, "No decode chain, new pad ignored");
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