Gst.Pad.set_caps() not available in python
When writing a parser in python I noticed that Gst.Pad.set_caps()
is not available in the python API (http://lazka.github.io/pgi-docs/index.html#Gst-1.0/classes/Pad.html#methods).
In the C API gst_pad_set_caps()
is not really a GstPad
function, but rather a compatibility helper (https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/gst/gstcompat.h#L47).
The shortcoming can be worked around in python by using the equivalent snippet (in case of a source pad):
...
event = Gst.Event.new_caps(caps)
ret = self.srcpad.push_event(event)
However it may still be useful for the python bindings to provide Gst.Pad.set_caps()
just to make it easier to reproduce a C example in python or vice versa.
Thank you. Antonio