decodebin2: Only check if this is a discarded type if we have fixed caps

For unfixed caps we will get here again later when the caps are fixed.
This commit is contained in:
Sebastian Dröge 2011-09-20 14:04:45 +02:00
parent 8e114c427a
commit 61c6fcb2cd

View file

@ -1494,7 +1494,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
/* At this point we have a potential decoder, but we might not need it /* At this point we have a potential decoder, but we might not need it
* if it doesn't match the output caps */ * if it doesn't match the output caps */
if (!dbin->expose_allstreams) { if (!dbin->expose_allstreams && gst_caps_is_fixed (caps)) {
guint i; guint i;
const GList *tmps; const GList *tmps;
gboolean dontuse = FALSE; gboolean dontuse = FALSE;