aggregator: Wait for the minimum latency, not the maximum

The minimum latency is the latency we have to wait at least
to guarantee that all upstreams have produced data. The maximum
latency has no meaning like that and shouldn't be used for waiting.
This commit is contained in:
Sebastian Dröge 2014-12-27 09:42:57 +01:00 committed by Tim-Philipp Müller
parent d18b6de2e6
commit 4846f06b41

View file

@ -539,9 +539,7 @@ _wait_and_check (GstAggregator * self, gboolean * timeout)
time = base_time + start;
if (GST_CLOCK_TIME_IS_VALID (latency_max)) {
time += latency_max;
} else if (GST_CLOCK_TIME_IS_VALID (latency_min)) {
if (GST_CLOCK_TIME_IS_VALID (latency_min)) {
time += latency_min;
} else {
time += self->latency;