bin: aggregate durations like in adder
authorStefan Sauer <ensonic@users.sf.net>
Mon, 16 Jul 2012 18:54:17 +0000 (20:54 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 16 Jul 2012 18:54:17 +0000 (20:54 +0200)
commit840f905c2ceb922cbae845f27418d2062bc7fc3b
tree5afe86b0b07800d634b1740d482b31731138d137
parentd370c1ee2fcaa30a0f310586928fcfcf85fdf2c6
bin: aggregate durations like in adder

Stop querying the duration once an element return unknown and return unknown
as a final result. This avoid eventually cutting off a stream too early.
Add a tests to docuement the behavior.
gst/gstbin.c
tests/check/gst/gstbin.c