decodebin2: Initialize variable correctly

If subdrained isn't initialized to FALSE then a chain might think
that its group is drained when in fact it's not and this can cause
a switch too early or even cause a deadlock.
This commit is contained in:
Youness Alaoui 2011-08-18 15:13:23 +00:00 committed by Sebastian Dröge
parent 9d2bcb08fe
commit 27058c1bc6

View file

@ -3078,7 +3078,7 @@ drain_and_switch_group (GstDecodeGroup * group, GstDecodePad * drainpad,
* new information */ * new information */
for (tmp = group->children; tmp; tmp = tmp->next) { for (tmp = group->children; tmp; tmp = tmp->next) {
GstDecodeChain *chain = (GstDecodeChain *) tmp->data; GstDecodeChain *chain = (GstDecodeChain *) tmp->data;
gboolean subdrained; gboolean subdrained = FALSE;
handled |= handled |=
drain_and_switch_chains (chain, drainpad, last_group, &subdrained, drain_and_switch_chains (chain, drainpad, last_group, &subdrained,