From c77136d63f6d6b56ec7b623b67509b7024465250 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Thu, 7 Jan 2021 09:53:41 +0100 Subject: [PATCH] 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: --- libs/gst/base/gstaggregator.c | 2 +- libs/gst/base/gstbasesrc.c | 2 +- libs/gst/base/gstbasetransform.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c index 0e5475c627..f9e71facb5 100644 --- a/libs/gst/base/gstaggregator.c +++ b/libs/gst/base/gstaggregator.c @@ -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; diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index e802483600..e35a88f77b 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -3133,7 +3133,7 @@ pause: static gboolean gst_base_src_set_allocation (GstBaseSrc * basesrc, GstBufferPool * pool, - GstAllocator * allocator, GstAllocationParams * params) + GstAllocator * allocator, const GstAllocationParams * params) { GstAllocator *oldalloc; GstBufferPool *oldpool; diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 0bdb9de716..2df00f9cff 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -746,7 +746,7 @@ done: 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;