No way to create a boxed (heap-allocated) GstAllocationParams
A GstAllocationParams instance is usually stack-allocated or part of a struct
. However, for the Vala bindings, I need to dynamically allocate an instance. GstAllocationParams is a boxed type (ref), so it has _copy()
and _free()
. However, there is no gst_allocation_params_new()
that I can find. Existing gst_allocation_params_init()
is for stack-allocated objects or objects that are part of other structures (example).
If no one objects, I will submit an MR:
- adding
GstAllocationParams * gst_allocation_params_new()
; and - expressly marking the parameter of
gst_allocation_params_init()
astransfer none
to reduce the chance of confusion about which to use.