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:
parent
46f857b314
commit
6449e3d897
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user