aggregator: Also include the subclass latency in the result of the latency query

This commit is contained in:
Sebastian Dröge 2014-12-22 22:19:52 +01:00 committed by Tim-Philipp Müller
parent 5caf89da37
commit 4c477549d2

View file

@ -1101,6 +1101,13 @@ gst_aggregator_query_latency (GstAggregator * self, GstQuery * query)
data.max += self->latency;
}
if (GST_CLOCK_TIME_IS_VALID (self->priv->sub_latency_min)
&& GST_CLOCK_TIME_IS_VALID (data.min))
data.min += self->priv->sub_latency_min;
if (GST_CLOCK_TIME_IS_VALID (self->priv->sub_latency_max)
&& GST_CLOCK_TIME_IS_VALID (data.max))
data.max += self->priv->sub_latency_max;
GST_DEBUG_OBJECT (self, "configured latency live:%s min:%" G_GINT64_FORMAT
" max:%" G_GINT64_FORMAT, data.live ? "true" : "false", data.min,
data.max);