decodebin2: Only check if this is a discarded type if we have fixed caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 20 Sep 2011 12:04:45 +0000 (14:04 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 20 Sep 2011 12:06:51 +0000 (14:06 +0200)
For unfixed caps we will get here again later when the caps are fixed.

gst/playback/gstdecodebin2.c

index bf88ed8..eb14dc2 100644 (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
    * if it doesn't match the output caps  */
-  if (!dbin->expose_allstreams) {
+  if (!dbin->expose_allstreams && gst_caps_is_fixed (caps)) {
     guint i;
     const GList *tmps;
     gboolean dontuse = FALSE;