push_segment


Description:

[ Version ( since = "1.24" ) ]
public bool push_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 set_caps needs to have been called before.

The format for the segment must be identical with the current format of the source, as configured with set_format.

The format of this must not be UNDEFINED and the format should be configured via set_format before calling this method.

This is a variant of new_segment sending the segment right away, which can be useful to ensure events ordering.

Parameters:

this

a Src

segment

a pointer to a Segment

Returns:

true if sending of new segment succeeded.