From c58f2b09d215684cef8eeb3fde41e9ad16bcd8df Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Fri, 15 Jan 2021 00:29:11 +0100 Subject: [PATCH] gl/sys/gir: New buffer/memory get_type functions are only in 1.20 G-IR cannot read or represent `Since:` annotations on get_type()-like functions, despite these being available in the source. This adds the type requirements manually following its implementation in [1], considering it will not be backported to 1.18.x [2]. If `get_type` is used in manual bindings after 1.20 releases this version requirement is easily caught. [1]: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/999 [2]: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1010 --- gstreamer-gl/sys/Gir.toml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gstreamer-gl/sys/Gir.toml b/gstreamer-gl/sys/Gir.toml index 5b2d75b01..c11849180 100644 --- a/gstreamer-gl/sys/Gir.toml +++ b/gstreamer-gl/sys/Gir.toml @@ -30,3 +30,31 @@ gstreamer-video="GstVideo" #[[object]] #name = "GstGL.GL_COLOR_CONVERT_VIDEO_CAPS" #status = "manual" + +[[object]] +name = "GstGL.GLBuffer" +status = "generate" + [[object.function]] + name = "get_type" + version = "1.20" + +[[object]] +name = "GstGL.GLMemory" +status = "generate" + [[object.function]] + name = "get_type" + version = "1.20" + +[[object]] +name = "GstGL.GLMemoryPBO" +status = "generate" + [[object.function]] + name = "get_type" + version = "1.20" + +[[object]] +name = "GstGL.GLRenderbuffer" +status = "generate" + [[object.function]] + name = "get_type" + version = "1.20"