decodebin2: Actually iterate over the factories instead of only taking the first one

This commit is contained in:
Sebastian Dröge 2011-09-05 20:31:04 +02:00
parent 81c9459771
commit de4fc848fa

View file

@ -1477,7 +1477,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
for (i = 0; i < factories->n_values && !dontuse; i++) { for (i = 0; i < factories->n_values && !dontuse; i++) {
GstElementFactory *factory = 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; GstCaps *tcaps;
/* We are only interested in skipping decoders */ /* We are only interested in skipping decoders */