mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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
1 changed files with 1 additions and 3 deletions
|
@ -539,9 +539,7 @@ _wait_and_check (GstAggregator * self, gboolean * timeout)
|
||||||
|
|
||||||
time = base_time + start;
|
time = base_time + start;
|
||||||
|
|
||||||
if (GST_CLOCK_TIME_IS_VALID (latency_max)) {
|
if (GST_CLOCK_TIME_IS_VALID (latency_min)) {
|
||||||
time += latency_max;
|
|
||||||
} else if (GST_CLOCK_TIME_IS_VALID (latency_min)) {
|
|
||||||
time += latency_min;
|
time += latency_min;
|
||||||
} else {
|
} else {
|
||||||
time += self->latency;
|
time += self->latency;
|
||||||
|
|
Loading…
Reference in a new issue