From: Olivier CrĂȘte Date: Wed, 10 May 2017 00:20:07 +0000 (-0400) Subject: aggregator: Set initial position on first buffer X-Git-Tag: 1.16.2~574^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32b71d8707ac337e2e8b2606e845761a62a6abb2;p=platform%2Fupstream%2Fgstreamer.git aggregator: Set initial position on first buffer Set the initial position on the first buffer, otherwise the queue will grow without limits before the output thread is started. https://bugzilla.gnome.org/show_bug.cgi?id=781673 --- diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 14bef99..cd146fd 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -1026,6 +1026,9 @@ update_time_level (GstAggregatorPad * aggpad, gboolean head) GST_FORMAT_TIME, aggpad->priv->head_position); else aggpad->priv->head_time = GST_CLOCK_TIME_NONE; + + if (!GST_CLOCK_TIME_IS_VALID (aggpad->priv->tail_time)) + aggpad->priv->tail_time = aggpad->priv->head_time; } else { if (GST_CLOCK_TIME_IS_VALID (aggpad->priv->tail_position) && aggpad->segment.format == GST_FORMAT_TIME)