From: Olivier CrĂȘte Date: Tue, 3 Nov 2015 00:05:01 +0000 (-0500) Subject: aggregator: Remove dead code X-Git-Tag: 1.19.3~507^2~7670 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9deb33425169c1019044ea55658d57641ae7617b;p=platform%2Fupstream%2Fgstreamer.git aggregator: Remove dead code This code will never be called as max>=min in all cases. If the upstream latency query returned min>max, the function already returned and all values that are added to those have max>= min. --- diff --git a/gst-libs/gst/base/gstaggregator.c b/gst-libs/gst/base/gstaggregator.c index cffda52..823cd1f 100644 --- a/gst-libs/gst/base/gstaggregator.c +++ b/gst-libs/gst/base/gstaggregator.c @@ -1421,18 +1421,6 @@ gst_aggregator_query_latency_unlocked (GstAggregator * self, GstQuery * query) else max = GST_CLOCK_TIME_NONE; - if (live && min > max) { - GST_ELEMENT_WARNING (self, CORE, NEGOTIATION, - ("%s", "Latency too big"), - ("The requested latency value is too big for the current pipeline. " - "Limiting to %" G_GINT64_FORMAT, max)); - min = max; - /* FIXME: This could in theory become negative, but in - * that case all is lost anyway */ - self->priv->latency -= min - max; - /* FIXME: shouldn't we g_object_notify() the change here? */ - } - SRC_BROADCAST (self); GST_DEBUG_OBJECT (self, "configured latency live:%s min:%" G_GINT64_FORMAT