commit bb6d602a8bfa83fbd9b91e3b76e54adab31d68fb
Author: Edward Hervey <bilboed@bilboed.com>
Date:   Tue Jan 26 16:47:40 2010 +0100

    decodebin2: Don't skip an element when getting the topology

diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c
index d85d7b7..ade6a24 100644
--- a/gst/playback/gstdecodebin2.c
+++ b/gst/playback/gstdecodebin2.c
@@ -2865,7 +2865,7 @@ gst_decode_chain_get_topology (GstDecodeChain * chain)
   }
 
   /* Get caps between all elements in this chain */
-  l = (chain->elements && chain->elements->next) ? chain->elements->next : NULL;
+  l = (chain->elements && chain->elements->next) ? chain->elements : NULL;
   for (; l && l->next; l = l->next) {
     GstCaps *caps = _gst_element_get_linked_caps (l->next->data, l->data);
 
