mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-24 02:21:01 +00:00
gir-files/fix: Autoamtically delete duplicate ONEFIELDs in GstVideo.gir
This commit is contained in:
parent
e36f0b45a6
commit
c459ca8338
2 changed files with 6 additions and 3 deletions
|
@ -3,9 +3,6 @@
|
|||
* Take the updated .gir files (e.g. from your gst-build checkout) and put
|
||||
them in the gir-files directory
|
||||
* In the gir-files directory, run ./fix.sh
|
||||
* In the GstVideo-1.0.gir file, the `GST_VIDEO_BUFFER_FLAG_ONEFIELD` and
|
||||
`GST_VIDEO_FRAME_FLAG_ONEFIELD` flags are twice. This is a gir bug. Delete
|
||||
the second one.
|
||||
* If there is a new GStreamer version: Manually update `gst*/Cargo.toml`
|
||||
* Run generator.py
|
||||
* Investigate the diff, fix any mess-ups, look at commented functions and
|
||||
|
|
|
@ -77,6 +77,12 @@ xmlstarlet ed --pf --inplace \
|
|||
--insert '//_:record[@name="VideoAncillary"]/_:field[@name="data"]/_:array' \
|
||||
--type attr --name 'fixed-size' --value '256' \
|
||||
GstVideo-1.0.gir
|
||||
|
||||
xmlstarlet ed --pf --inplace \
|
||||
--delete "//_:member[@c:identifier=\"GST_VIDEO_BUFFER_FLAG_ONEFIELD\"][2]" \
|
||||
--delete "//_:member[@c:identifier=\"GST_VIDEO_FRAME_FLAG_ONEFIELD\"][2]" \
|
||||
GstVideo-1.0.gir
|
||||
|
||||
xmlstarlet ed --pf --inplace \
|
||||
--delete '//_:record[@name="ISO639LanguageDescriptor"]/_:field[@name="language"]/_:array/@c:type' \
|
||||
--insert '//_:record[@name="ISO639LanguageDescriptor"]/_:field[@name="language"]/_:array' \
|
||||
|
|
Loading…
Reference in a new issue