mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
playbin: Fix infinite loop in GSequence iteration code
This commit is contained in:
parent
351405d8a0
commit
b23f4e4ab9
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue