BaseSrc.pushSegment
bool pushSegment(gst.segment.Segment segment)Send a new segment downstream. This function must only be called by derived sub-classes, and only from the #GstBaseSrcClass::create function, as the stream-lock needs to be held. This method also requires that an out caps has been configured, so [gstbase.base_src.BaseSrc.setCaps] needs to have been called before.
The format for the segment must be identical with the current format of the source, as configured with [gstbase.base_src.BaseSrc.setFormat].
The format of src must not be [gst.types.Format.Undefined] and the format should be configured via [gstbase.base_src.BaseSrc.setFormat] before calling this method.
This is a variant of [gstbase.base_src.BaseSrc.newSegment] sending the segment right away, which can be useful to ensure events ordering.
Parameters
segment | a pointer to a #GstSegment |