BaseSrc.newSegment
bool newSegment(gst.segment.Segment segment)Prepare a new segment for emission 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.
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.
Parameters
segment | a pointer to a #GstSegment |
Returns
true if preparation of new segment succeeded.