Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MarijnS95 committed Jan 14, 2021
1 parent b71841c commit c77136d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/gst/base/gstaggregator.c
Expand Up @@ -1064,7 +1064,7 @@ gst_aggregator_default_negotiated_src_caps (GstAggregator * agg, GstCaps * caps)
static gboolean
gst_aggregator_set_allocation (GstAggregator * self,
GstBufferPool * pool, GstAllocator * allocator,
GstAllocationParams * params, GstQuery * query)
const GstAllocationParams * params, GstQuery * query)
{
GstAllocator *oldalloc;
GstBufferPool *oldpool;
Expand Down
2 changes: 1 addition & 1 deletion libs/gst/base/gstbasesrc.c
Expand Up @@ -3133,7 +3133,7 @@ gst_base_src_loop (GstPad * pad)

static gboolean
gst_base_src_set_allocation (GstBaseSrc * basesrc, GstBufferPool * pool,
GstAllocator * allocator, GstAllocationParams * params)
GstAllocator * allocator, const GstAllocationParams * params)
{
GstAllocator *oldalloc;
GstBufferPool *oldpool;
Expand Down
2 changes: 1 addition & 1 deletion libs/gst/base/gstbasetransform.c
Expand Up @@ -746,7 +746,7 @@ gst_base_transform_query_caps (GstBaseTransform * trans, GstPad * pad,
static gboolean
gst_base_transform_set_allocation (GstBaseTransform * trans,
GstBufferPool * pool, GstAllocator * allocator,
GstAllocationParams * params, GstQuery * query)
const GstAllocationParams * params, GstQuery * query)
{
GstAllocator *oldalloc;
GstBufferPool *oldpool;
Expand Down

0 comments on commit c77136d

Please sign in to comment.