Gst.Query.new_allocation

function new_allocation(caps:Gst.Caps, need_pool:Boolean):Gst.Query {
    // Gjs wrapper for gst_query_new_allocation()
}

Constructs a new query object for querying the allocation properties.

Free-function: gst_query_unref

caps

the negotiated caps

need_pool

return a pool

Returns

a new Gst.Query