decodebin2: Allow all EOS to go through if we don't have a next group

Only drop them if the current group isn't drained .. AND there is a
next group to switch to.

Should Fix #655268
This commit is contained in:
Edward Hervey 2011-07-26 12:33:56 +02:00
parent 059db89633
commit 38a6919a7b

View file

@ -2989,8 +2989,9 @@ gst_decode_chain_handle_eos (GstDecodeChain * eos_chain)
CHAIN_MUTEX_UNLOCK (chain);
GST_DEBUG_OBJECT (dbin,
"Current active group in chain %p is not drained yet", chain);
/* Instruct caller to drop EOS event */
forward_eos = FALSE;
/* Instruct caller to drop EOS event if we have future groups */
if (chain->next_groups)
forward_eos = FALSE;
}
return forward_eos;