forked from mirrors/gstreamer-rs
gl: Override readonly allocation parameters to const references
All these params are marked const in gstreamer-base 1.20 but their results will only show here when the resulting g-ir files are imported. For now the mutability is overridden in Gir.toml, and this commit should be reverted when the 1.20 bindings are imported.
This commit is contained in:
parent
05edd4155e
commit
43d7238b44
1 changed files with 18 additions and 1 deletions
|
@ -18,7 +18,6 @@ external_libraries = [
|
|||
|
||||
generate = [
|
||||
# Enums
|
||||
"GstGL.GLFormat",
|
||||
"GstGL.GLQueryType",
|
||||
"GstGL.GLSLVersion",
|
||||
"GstGL.GLTextureTarget",
|
||||
|
@ -499,6 +498,13 @@ status = "generate"
|
|||
name = "src_vid"
|
||||
const = true
|
||||
|
||||
[[object.function]]
|
||||
name = "new"
|
||||
[[object.function.parameter]]
|
||||
# Parameters will be marked const in 1.20 bindings
|
||||
pattern = "alloc_params|v_info|valign"
|
||||
const = true
|
||||
|
||||
[[object]]
|
||||
name = "GstGL.GLFramebuffer"
|
||||
status = "generate"
|
||||
|
@ -533,3 +539,14 @@ status = "generate"
|
|||
name = "filter_texture"
|
||||
[object.function.return]
|
||||
bool_return_is_error = "Failed to transform texture"
|
||||
|
||||
[[object]]
|
||||
name = "GstGL.GLFormat"
|
||||
status = "generate"
|
||||
|
||||
[[object.function]]
|
||||
name = "from_video_info"
|
||||
[[object.function.parameter]]
|
||||
# Parameter will be marked const in 1.20 bindings
|
||||
name = "vinfo"
|
||||
const = true
|
||||
|
|
Loading…
Reference in a new issue