plugins/elements/gsttee.c: Fix flow aggregation of tee. Error out immediately for...
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 14 Oct 2008 12:34:56 +0000 (12:34 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 14 Oct 2008 12:34:56 +0000 (12:34 +0000)
commit075811e6542275f3066fa51147c52c3ae5e9dae8
tree12723bb5d83aa6ed03510275eac104274bae09f6
parent97ec47cabb1eb2280cf14f334f4264d5cb7e6a88
plugins/elements/gsttee.c: Fix flow aggregation of tee. Error out immediately for all flow returns except OK and NOT_...

Original commit message from CVS:
* plugins/elements/gsttee.c: (gst_tee_handle_buffer):
Fix flow aggregation of tee. Error out immediately for all flow returns
except OK and NOT_LINKED, return NOT_LINKED if all pads are not linked
and return OK if at least one pad is linked.
Before we errored out on "fatal" flow returns (i.e. not for WRONG_STATE)
and otherwise returned the flow return of the last pad, which is wrong.
* tests/check/elements/tee.c: (_fake_chain), (_fake_chain_error),
(GST_START_TEST), (tee_suite):
Add unit tests for the flow aggregation.
ChangeLog
plugins/elements/gsttee.c
tests/check/elements/tee.c