playbin: Fix infinite loop in GSequence iteration code

This commit is contained in:
Sebastian Dröge 2013-05-08 21:27:17 +02:00
parent 351405d8a0
commit b23f4e4ab9

View file

@ -3536,7 +3536,7 @@ create_decoders_list (GList * factory_list, GSequence * avelements)
if (!avelement_iter_is_equal (tmp_seq_iter, factory))
break;
seq_iter = tmp_seq_iter;
} while (TRUE);
} while (!g_sequence_iter_is_begin (seq_iter));
/* Get the best ranked GstAVElement for that factory */
best_ave = NULL;
@ -3886,7 +3886,7 @@ autoplug_select_cb (GstElement * decodebin, GstPad * pad,
if (!avelement_iter_is_equal (tmp_seq_iter, factory))
break;
seq_iter = tmp_seq_iter;
} while (TRUE);
} while (!g_sequence_iter_is_begin (seq_iter));
while (!g_sequence_iter_is_end (seq_iter)
&& avelement_iter_is_equal (seq_iter, factory)) {