From be95be4b31038062f5eb39d42a1818ca27439a8d Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 18 Nov 2024 18:48:47 -0500 Subject: [PATCH] video: pool: Make structure const when getting video alignment Downgrade to const, this is backward compatible make makes the API compatible wit more usages. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.c | 2 +- subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.c b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.c index fd4198d79f..9840b4d2be 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.c @@ -77,7 +77,7 @@ gst_buffer_pool_config_set_video_alignment (GstStructure * config, * Returns: %TRUE if @config could be parsed correctly. */ gboolean -gst_buffer_pool_config_get_video_alignment (GstStructure * config, +gst_buffer_pool_config_get_video_alignment (const GstStructure * config, GstVideoAlignment * align) { g_return_val_if_fail (config != NULL, FALSE); diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.h b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.h index 6fd0db1bcd..e5ca7cf799 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideopool.h @@ -51,7 +51,7 @@ GST_VIDEO_API void gst_buffer_pool_config_set_video_alignment (GstStructure *config, const GstVideoAlignment *align); GST_VIDEO_API -gboolean gst_buffer_pool_config_get_video_alignment (GstStructure *config, GstVideoAlignment *align); +gboolean gst_buffer_pool_config_get_video_alignment (const GstStructure *config, GstVideoAlignment *align); /* video bufferpool */ typedef struct _GstVideoBufferPool GstVideoBufferPool;