tee: Properly handle return value when only 1 pad
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Jun 2016 16:34:53 +0000 (12:34 -0400)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 17 Jun 2016 10:03:20 +0000 (13:03 +0300)
commit4603722e2d4969fa56b24a2e2aac08608d5e6365
treef204b3a1f1248985518d9eeede429b892b009bb5
parent06d2c6989da6dff33b3e33d0a5bc7e7547c11fd7
tee: Properly handle return value when only 1 pad

This patch handle the case when you have 1 pad (so the fast path is
being used) but this pad is removed. If we are in allow-not-linked, we
should return GST_FLOW_OK, otherwise, we should return GST_FLOW_UNLINKED
and ignore the meaningless return value obtained from pushing.

https://bugzilla.gnome.org/show_bug.cgi?id=767413
plugins/elements/gsttee.c