aggregator: Start the task when linked
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 13 Apr 2016 20:30:28 +0000 (16:30 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
commit3b05c552221f8d8c0e3e097d115039bc7e62d79f
treea2c4e0bcc1bd5546e794aeb71d1419a37408b5f0
parent834015009f02e83730ab6037f8157fdac74c958f
aggregator: Start the task when linked

Until now we would start the task when the pad is activated. Part of the
activiation concist of testing if the pipeline is live or not.
Unfortunatly, this is often too soon, as it's likely that the pad get
activated before it is fully linked in dynamic pipeline.

Instead, start the task when the first serialized event arrive. This is
a safe moment as we know that the upstream chain is complete and just
like the pad activation, the pads are locked, hence cannot change.

https://bugzilla.gnome.org/show_bug.cgi?id=757548
libs/gst/base/gstaggregator.c