mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
aggregator: Only count buffers when declaring queue full
https://bugzilla.gnome.org/show_bug.cgi?id=781673
This commit is contained in:
parent
c0849df4ac
commit
6e96bebd5b
1 changed files with 1 additions and 1 deletions
|
@ -2091,7 +2091,7 @@ static gboolean
|
|||
gst_aggregator_pad_has_space (GstAggregator * self, GstAggregatorPad * aggpad)
|
||||
{
|
||||
/* Empty queue always has space */
|
||||
if (g_queue_get_length (&aggpad->priv->buffers) == 0)
|
||||
if (aggpad->priv->num_buffers == 0)
|
||||
return TRUE;
|
||||
|
||||
/* We also want at least two buffers, one is being processed and one is ready
|
||||
|
|
Loading…
Reference in a new issue