mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
aggregator: Also include the subclass latency in the result of the latency query
This commit is contained in:
parent
ad9fe1fe7b
commit
800f0ac49b
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue