From 38a6919a7bb36b4db340ec783cf95afc1410cadf Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 26 Jul 2011 12:33:56 +0200 Subject: [PATCH] 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 --- gst/playback/gstdecodebin2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 260fac8455..77942609d0 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -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;