diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2013-01-09 18:39:49 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.com> | 2013-04-23 10:32:19 -0300 |
commit | 42db7c7b08ac092ea4b622620d05b6ca1dabccde (patch) | |
tree | a9a722393650ed02acc0ac02b1f23c1e9ba5c728 | |
parent | ce20bc1dc0b718e23968a913404d807b5920bb07 (diff) |
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
-rw-r--r-- | gst/playback/gstdecodebin2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 72cb461de..0b584da30 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -3397,6 +3397,9 @@ drain_and_switch_chains (GstDecodeChain * chain, GstDecodePad * drainpad, chain->drained = TRUE; /* We're drained ! */ } + } else { + if (subdrained && !chain->next_groups) + *drained = TRUE; } } |