summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarijn Suijten <marijns95@gmail.com>2021-01-04 23:25:10 +0100
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-01-14 11:53:10 +0000
commitabb026ec6ab1617b44de69e9a251317592eee755 (patch)
tree882db8f60b5f4d742370fec7397682ab34df5867 /sys
parentfa8b5b9a6d472e8a11d3b362f09f8c7d29fa6704 (diff)
gl,video: Make ptrs to VideoInfo and (GL)AllocationParams immutable
These parameters are incorrectly regarded as mutable in G-IR making them "incompatible" with languages that are explicit about mutability like Rust. In order to clean up the code and expected API there, update the signatures here, right at the source (instead of overriding them in Gir.toml and hoping for the best). Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1005>
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvcontext.c3
-rw-r--r--sys/xvimage/xvcontext.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/xvimage/xvcontext.c b/sys/xvimage/xvcontext.c
index 152746e53..69d6884dd 100644
--- a/sys/xvimage/xvcontext.c
+++ b/sys/xvimage/xvcontext.c
@@ -886,7 +886,8 @@ gst_xvcontext_update_colorbalance (GstXvContext * context,
/* This function tries to get a format matching with a given caps in the
supported list of formats we generated in gst_xvimagesink_get_xv_support */
gint
-gst_xvcontext_get_format_from_info (GstXvContext * context, GstVideoInfo * info)
+gst_xvcontext_get_format_from_info (GstXvContext * context,
+ const GstVideoInfo * info)
{
GList *list = NULL;
diff --git a/sys/xvimage/xvcontext.h b/sys/xvimage/xvcontext.h
index 68cbdb747..701b527fa 100644
--- a/sys/xvimage/xvcontext.h
+++ b/sys/xvimage/xvcontext.h
@@ -196,7 +196,7 @@ gst_xvcontext_unref (GstXvContext * xvcontext)
}
gint gst_xvcontext_get_format_from_info (GstXvContext * xvcontext,
- GstVideoInfo * info);
+ const GstVideoInfo * info);
void gst_xvcontext_set_synchronous (GstXvContext * xvcontext,