mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
aggregator: Clamp the min latency at the max if it's greater
This commit is contained in:
parent
b49805a840
commit
d18b6de2e6
1 changed files with 7 additions and 0 deletions
|
@ -1102,6 +1102,13 @@ gst_aggregator_query_latency (GstAggregator * self, GstQuery * query)
|
||||||
data.min = 0;
|
data.min = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (G_UNLIKELY (data.min > data.max)) {
|
||||||
|
GST_WARNING_OBJECT (self, "Minimum latency is greater than maximum latency "
|
||||||
|
"(%" G_GINT64_FORMAT " > %" G_GINT64_FORMAT "). "
|
||||||
|
"Clamping it at the maximum latency", data.min, data.max);
|
||||||
|
data.min = data.max;
|
||||||
|
}
|
||||||
|
|
||||||
self->priv->latency_live = data.live;
|
self->priv->latency_live = data.live;
|
||||||
self->priv->latency_min = data.min;
|
self->priv->latency_min = data.min;
|
||||||
self->priv->latency_max = data.max;
|
self->priv->latency_max = data.max;
|
||||||
|
|
Loading…
Reference in a new issue