mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
aggregator: Don't add the latency property to the max latency
It has no meaning for the max latency and is only used to increase the min latency.
This commit is contained in:
parent
24abac9fce
commit
87a2fbab60
1 changed files with 1 additions and 6 deletions
|
@ -1163,11 +1163,8 @@ gst_aggregator_get_latency_unlocked (GstAggregator * self, gboolean * live,
|
||||||
max += self->priv->sub_latency_max;
|
max += self->priv->sub_latency_max;
|
||||||
|
|
||||||
our_latency = self->priv->latency;
|
our_latency = self->priv->latency;
|
||||||
if (GST_CLOCK_TIME_IS_VALID (our_latency)) {
|
if (GST_CLOCK_TIME_IS_VALID (our_latency))
|
||||||
min += our_latency;
|
min += our_latency;
|
||||||
if (GST_CLOCK_TIME_IS_VALID (max))
|
|
||||||
max += our_latency;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (live)
|
if (live)
|
||||||
*live = self->priv->latency_live;
|
*live = self->priv->latency_live;
|
||||||
|
@ -1226,8 +1223,6 @@ gst_aggregator_query_latency (GstAggregator * self, GstQuery * query)
|
||||||
if (GST_CLOCK_TIME_IS_VALID (our_latency)) {
|
if (GST_CLOCK_TIME_IS_VALID (our_latency)) {
|
||||||
if (GST_CLOCK_TIME_IS_VALID (data.min))
|
if (GST_CLOCK_TIME_IS_VALID (data.min))
|
||||||
data.min += our_latency;
|
data.min += our_latency;
|
||||||
if (GST_CLOCK_TIME_IS_VALID (data.max))
|
|
||||||
data.max += our_latency;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GST_CLOCK_TIME_IS_VALID (self->priv->sub_latency_min)
|
if (GST_CLOCK_TIME_IS_VALID (self->priv->sub_latency_min)
|
||||||
|
|
Loading…
Reference in a new issue