aggregator: Use the sinkpads iterator directly to query upstream latencies
authorSebastian Dröge <sebastian@centricular.com>
Thu, 19 Feb 2015 09:04:28 +0000 (11:04 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 2 Dec 2017 15:10:26 +0000 (15:10 +0000)
commit83203e9dc4f1cad4a1ed212e4f7e559ff4f0a770
tree48b047c5bc6bd3251a757a26a715e3fed7c7aed4
parent075cfd8d7b2d0334f9c3da1b4f4fce1e6db6ed53
aggregator: Use the sinkpads iterator directly to query upstream latencies

While gst_aggregator_iterate_sinkpads() makes sure that every pad is only
visited once, even when the iterator has to resync, this is not all we have
to do for querying the latency. When the iterator resyncs we actually have
to query all pads for the latency again and forget our previous results. It
might have happened that a pad was removed, which influenced the result of
the latency query.
libs/gst/base/gstaggregator.c