mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
gst,base: Take GstAllocationParams parameter by const ptr
This parameter is only informational and should not be modified. Enforce this at compile-time and to get the right signature in G-IR. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/730>
This commit is contained in:
parent
b71841c2d2
commit
c77136d63f
3 changed files with 3 additions and 3 deletions
|
@ -1064,7 +1064,7 @@ gst_aggregator_default_negotiated_src_caps (GstAggregator * agg, GstCaps * caps)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_aggregator_set_allocation (GstAggregator * self,
|
gst_aggregator_set_allocation (GstAggregator * self,
|
||||||
GstBufferPool * pool, GstAllocator * allocator,
|
GstBufferPool * pool, GstAllocator * allocator,
|
||||||
GstAllocationParams * params, GstQuery * query)
|
const GstAllocationParams * params, GstQuery * query)
|
||||||
{
|
{
|
||||||
GstAllocator *oldalloc;
|
GstAllocator *oldalloc;
|
||||||
GstBufferPool *oldpool;
|
GstBufferPool *oldpool;
|
||||||
|
|
|
@ -3133,7 +3133,7 @@ pause:
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_base_src_set_allocation (GstBaseSrc * basesrc, GstBufferPool * pool,
|
gst_base_src_set_allocation (GstBaseSrc * basesrc, GstBufferPool * pool,
|
||||||
GstAllocator * allocator, GstAllocationParams * params)
|
GstAllocator * allocator, const GstAllocationParams * params)
|
||||||
{
|
{
|
||||||
GstAllocator *oldalloc;
|
GstAllocator *oldalloc;
|
||||||
GstBufferPool *oldpool;
|
GstBufferPool *oldpool;
|
||||||
|
|
|
@ -746,7 +746,7 @@ done:
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_base_transform_set_allocation (GstBaseTransform * trans,
|
gst_base_transform_set_allocation (GstBaseTransform * trans,
|
||||||
GstBufferPool * pool, GstAllocator * allocator,
|
GstBufferPool * pool, GstAllocator * allocator,
|
||||||
GstAllocationParams * params, GstQuery * query)
|
const GstAllocationParams * params, GstQuery * query)
|
||||||
{
|
{
|
||||||
GstAllocator *oldalloc;
|
GstAllocator *oldalloc;
|
||||||
GstBufferPool *oldpool;
|
GstBufferPool *oldpool;
|
||||||
|
|
Loading…
Reference in a new issue