VideoInfo, AudioInfo: fix usage with python bindings
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 25 Jan 2022 23:02:49 +0000 (00:02 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 27 Jan 2022 08:36:46 +0000 (08:36 +0000)
commit830d1595b94ee855b664b2101f0832fbd0181b9c
treef4e79826f7f99d900986bd50f9e51b9b74fb59e3
parent6838742801f8f8075c464c0e4ee80278757ef0d0
VideoInfo, AudioInfo: fix usage with python bindings

* Expose an actual constructor from caps

* Error out in overrides for code that was using the "manual
  allocation" pattern which only worked by chance. Direct
  the script writer to the new_from_caps constructor instead.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/47

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1571>
subprojects/gst-plugins-base/gst-libs/gst/audio/audio-info.c
subprojects/gst-plugins-base/gst-libs/gst/audio/audio-info.h
subprojects/gst-plugins-base/gst-libs/gst/video/video-info.c
subprojects/gst-plugins-base/gst-libs/gst/video/video-info.h
subprojects/gst-python/gi/overrides/GstAudio.py [new file with mode: 0644]
subprojects/gst-python/gi/overrides/GstVideo.py [new file with mode: 0644]
subprojects/gst-python/gi/overrides/meson.build