mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +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
d18b6de2e6
commit
4846f06b41
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