mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
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
This commit is contained in:
parent
82f7b00ea3
commit
1ab33d78fe
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue