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
_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:
GstAllocationParams * gst_allocation_params_new(); and
- expressly marking the parameter of
transfer noneto reduce the chance of confusion about which to use.