[Bug 572973] [API] buffer size query or indication from audio encoders to upstream how many samples to produce per buffer

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Jun 2 06:57:37 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=572973

--- Comment #27 from Stefan Sauer (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> ---
(In reply to Nicolas Dufresne (stormer) from comment #21)
> (In reply to Stefan Sauer (gstreamer, gtkdoc dev) from comment #20)
> > Re min,max=0, that is what gstvideoencoder,gstvideofilter does:
> > gst_query_add_allocation_pool (query, pool, size, 0, 0);
> > 
> > Anyway, we shoudl at least update the docs if API that has 'pool' in the
> > name is supposed to be used to configure things that are not related to
> > pools.
> 
> Why do you say it's not related to pools ? When using fixed size buffers, we
> should always use a pool to allocate. Those are parameters that could be
> passed to our local pool if downstream does not have a pool. But also,
> sometimes the pool won't be NULL here. It's just that for audio it should
> have the semantic that if possible, you use that extra space. If not, you'll
> be better allocating smaller chunk (otherwise it's a waste).

If the source implements a pool this is of course fine. I though you were
proposing to also using for the no-pool case.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list