diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-03-12 19:46:44 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-03-14 12:45:29 +0200 |
commit | 65d09c1495ec9093ab95b7539671b48b3c4c9305 (patch) | |
tree | b33dc817d1a2ea1b5023ab27d04a1d318ec1f9d2 /gst | |
parent | 001c7f04a06e261cebd191a541c1f23d13e01022 (diff) |
decodebin: Don't check twice if the decode chain is complete in pad_added_cb()
expose_pad() already does the same.
https://bugzilla.gnome.org/show_bug.cgi?id=763491
Diffstat (limited to 'gst')
-rw-r--r-- | gst/playback/gstdecodebin2.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index a3bc61947..73aa258ba 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -2930,18 +2930,6 @@ pad_added_cb (GstElement * element, GstPad * pad, GstDecodeChain * chain) if (caps) gst_caps_unref (caps); - EXPOSE_LOCK (dbin); - if (dbin->decode_chain) { - if (gst_decode_chain_is_complete (dbin->decode_chain)) { - GST_LOG_OBJECT (dbin, - "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"); - } - EXPOSE_UNLOCK (dbin); GST_PAD_STREAM_UNLOCK (pad); } |