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 gst_base_src_set_format().

The format of @src must not be %GST_FORMAT_UNDEFINED and the format should be configured via gst_base_src_set_format() before calling this method.

class BaseSrc
bool
newSegment

Parameters

segment Segment

a pointer to a #GstSegment

Return Value

Type: bool

%TRUE if preparation of new segment succeeded.

Meta

Since

1.18