decodebin2: Actually iterate over the factories instead of only taking the first one
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 5 Sep 2011 18:31:04 +0000 (20:31 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 5 Sep 2011 18:32:42 +0000 (20:32 +0200)
gst/playback/gstdecodebin2.c

index c8f88c3..e137b93 100644 (file)
@@ -1477,7 +1477,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
 
     for (i = 0; i < factories->n_values && !dontuse; i++) {
       GstElementFactory *factory =
-          g_value_get_object (g_value_array_get_nth (factories, 0));
+          g_value_get_object (g_value_array_get_nth (factories, i));
       GstCaps *tcaps;
 
       /* We are only interested in skipping decoders */