gir-files/fix: Autoamtically delete duplicate ONEFIELDs in GstVideo.gir

This commit is contained in:
Marijn Suijten 2020-11-25 20:07:30 +01:00
parent e36f0b45a6
commit c459ca8338
2 changed files with 6 additions and 3 deletions

View file

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

View file

@ -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' \