May it be possible to remove the doubled entries in
$ grep -A8 "member name=\"onefield\"" /usr/share/gir-1.0/GstVideo-1.0.gir
<member name="onefield"
value="8388608"
c:identifier="GST_VIDEO_BUFFER_FLAG_ONEFIELD"
glib:nick="onefield">
<doc xml:space="preserve"
filename="gst-plugins-base-1.16.2/gst-libs/gst/video/video-frame.h"
line="161">If the #GstBuffer is interlaced, then only the
first field (as defined by the %GST_VIDEO_BUFFER_FLAG_TFF
flag setting) is to be displayed (Since: 1.16).</doc>
--
<member name="onefield"
value="8388608"
c:identifier="GST_VIDEO_BUFFER_FLAG_ONEFIELD"
glib:nick="onefield">
<doc xml:space="preserve"
filename="gst-plugins-base-1.16.2/gst-libs/gst/video/video-frame.h"
line="161">If the #GstBuffer is interlaced, then only the
first field (as defined by the %GST_VIDEO_BUFFER_FLAG_TFF
flag setting) is to be displayed (Since: 1.16).</doc>
--
<member name="onefield"
value="8"
c:identifier="GST_VIDEO_FRAME_FLAG_ONEFIELD"
glib:nick="onefield">
<doc xml:space="preserve"
filename="gst-plugins-base-1.16.2/gst-libs/gst/video/video-frame.h"
line="37">The video frame has one field</doc>
</member>
<member name="multiple_view"
--
<member name="onefield"
value="8"
c:identifier="GST_VIDEO_FRAME_FLAG_ONEFIELD"
glib:nick="onefield">
<doc xml:space="preserve"
filename="gst-plugins-base-1.16.2/gst-libs/gst/video/video-frame.h"
line="37">The video frame has one field</doc>
</member>
<member name="bottom_field"
This is for gstreamer-1.16.2.
Unfortunately this gives redefinition errors for Nim.
That’s something you need to handle in your bindings generation code. Similar to names that are keywords in the target language or otherwise names that are not allowed.