:right-sidebar: True PushSrc =================================================================== .. currentmodule:: gi.repository.GstBase .. class:: PushSrc(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GstBase.BaseSrc`, :class:`~gi.repository.Gst.Element`, :class:`~gi.repository.Gst.Object`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` :Constructors: :: PushSrc(**properties) Virtual Methods --------------- .. rst-class:: interim-class .. class:: PushSrc :no-index: .. method:: do_alloc() -> tuple[~gi.repository.Gst.FlowReturn, ~gi.repository.Gst.Buffer] Allocate memory for a buffer. .. method:: do_create() -> tuple[~gi.repository.Gst.FlowReturn, ~gi.repository.Gst.Buffer] Ask the subclass to create a buffer, the default implementation will call alloc if no allocated ``buf`` is provided and then call fill. .. method:: do_fill(buf: ~gi.repository.Gst.Buffer) -> ~gi.repository.Gst.FlowReturn Ask the subclass to fill the buffer with data. :param buf: Fields ------ .. rst-class:: interim-class .. class:: PushSrc :no-index: .. attribute:: parent