[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 08:06:19 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=572973
--- Comment #17 from Stefan Sauer (gstreamer, gtkdoc dev) <ensonic at sonicpulse.de> ---
Nicolas, can you please give an example how you would do it with the api we
have?
The source creates and sends an allocation query:
query = gst_query_new_allocation(some_caps, FALSE);
gst_pad_peer_query (self->srcpad, query);
Now the decoder get those and wants to tell what buffer-size is preferred. The
available API is:
gst_query_add_allocation_meta (GstQuery *query,
GType api,
const GstStructure *params);
gst_query_add_allocation_param (GstQuery *query,
GstAllocator *allocator,
const GstAllocationParams *params);
gst_query_add_allocation_pool (GstQuery *query,
GstBufferPool *pool,
guint size,
guint min_buffers,
guint max_buffers);
What I am saying is that using:
gst_query_add_allocation_pool (query, NULL, preferred_size, 0, 0);
sound like a hack to me (even though pool=NULL is allowed). I am mostly
concerned that it won't be very discoverable, since the the api name suggest
that we configure a pool.
--
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