decodebin2: still report chain as drained when not 'handled'

Even if the chain hasn't been 'handled' in this switching round,
report it as drained so upper chains/groups know abou it.

This makes switching happen on upper levels of the groups/chain
trees
This commit is contained in:
Thiago Santos 2013-01-09 18:39:49 -03:00
parent ce20bc1dc0
commit 42db7c7b08

View file

@ -3397,6 +3397,9 @@ drain_and_switch_chains (GstDecodeChain * chain, GstDecodePad * drainpad,
chain->drained = TRUE; chain->drained = TRUE;
/* We're drained ! */ /* We're drained ! */
} }
} else {
if (subdrained && !chain->next_groups)
*drained = TRUE;
} }
} }