[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
Tue May 31 20:18:51 UTC 2016


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

--- Comment #21 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
(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).

-- 
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