BaseSrc.newSegment

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.

class BaseSrc
bool
newSegment

Parameters

segment gst.segment.Segment

a pointer to a #GstSegment

Return Value

Type: bool

true if preparation of new segment succeeded.