tee: don't create a pool if none is needed
authorStefan Sauer <ensonic@users.sf.net>
Mon, 2 Oct 2017 14:26:33 +0000 (16:26 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 2 Oct 2017 17:58:04 +0000 (13:58 -0400)
commit21c3f0ff226150cf83663fe507b502800744461a
treebde589c40dff49324f8a9fae410b32b4331568aa
parent944758aeda2e7a358152add433ab2808f9e3a705
tee: don't create a pool if none is needed

If the aggregated size is 0 and we create a pool, the pool would provide
buffers with no memory assigned. Handle that case and skip the pool.
This was the behaviour before cf803ea9f4e3fde92c1da86ecc47444035f7c0a7.

Add a test for this scenario.

https://bugzilla.gnome.org/show_bug.cgi?id=730758
plugins/elements/gsttee.c
tests/check/elements/tee.c