decodebin: aggregate buffering messages
authorThiago Santos <ts.santos@sisa.samsung.com>
Sun, 16 Mar 2014 17:27:30 +0000 (14:27 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Thu, 29 May 2014 21:59:30 +0000 (18:59 -0300)
commit783195ccefa8690cc4a3ccffbfd77c2e86b2c391
treeabea53e4827625055f7f9352b5ab84cdbe8ba7df
parentba87655628bf511cac681b4ab3347163037f06c8
decodebin: aggregate buffering messages

Aggregate buffering messages to only post the lower value
to avoid setting pipeline to playing while any multiqueue
is still buffering.

There are 3 scenarios where the entries should be removed from
the list:

1) When decodebin is set to READY
2) When an element posts a 100% buffering (already implemented)
3) When a multiqueue is removed from decodebin.

For item 3 we don't need to handle it because this should only
happen when either 1 is hapenning or when it is playing a
chained file, for which number 2 should have happened for the
previous stream to finish

https://bugzilla.gnome.org/show_bug.cgi?id=726423
gst/playback/gstdecodebin2.c
tests/check/elements/decodebin.c