From ef8e5280d023b54e2fbdb0e26c0b3c0899472de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 6 Feb 2015 10:30:59 +0100 Subject: [PATCH] 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. --- gst-libs/gst/base/gstaggregator.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gst-libs/gst/base/gstaggregator.c b/gst-libs/gst/base/gstaggregator.c index e9056e3525..44cf2959b9 100644 --- a/gst-libs/gst/base/gstaggregator.c +++ b/gst-libs/gst/base/gstaggregator.c @@ -1163,11 +1163,8 @@ gst_aggregator_get_latency_unlocked (GstAggregator * self, gboolean * live, max += self->priv->sub_latency_max; our_latency = self->priv->latency; - if (GST_CLOCK_TIME_IS_VALID (our_latency)) { + if (GST_CLOCK_TIME_IS_VALID (our_latency)) min += our_latency; - if (GST_CLOCK_TIME_IS_VALID (max)) - max += our_latency; - } if (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 (data.min)) 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)