" max:%" G_GINT64_FORMAT, GST_PAD_NAME (pad),
live ? "true" : "false", min, max);
- if (min > data->min)
+ if (min != GST_CLOCK_TIME_NONE && min > data->min)
data->min = min;
if (max != GST_CLOCK_TIME_NONE &&
g_return_if_fail (GST_IS_AGGREGATOR (self));
+ /* latency_min is never GST_CLOCK_TIME_NONE by construction */
min = self->priv->latency_min;
max = self->priv->latency_max;
GstClockTime min_latency, GstClockTime max_latency)
{
g_return_if_fail (GST_IS_AGGREGATOR (self));
+ g_return_if_fail (GST_CLOCK_TIME_IS_VALID (min_latency));
g_return_if_fail (max_latency >= min_latency);
GST_OBJECT_LOCK (self);