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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7201>
This commit is contained in:
Nicolas Dufresne 2024-11-18 18:48:47 -05:00 committed by GStreamer Marge Bot
parent 45806c4d66
commit be95be4b31
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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;