Event.this

Allocate a new newsegment event with the given format/values triplets. The newsegment event marks the range of buffers to be processed. All data not within the segment range is not to be processed. This can be used intelligently by plugins to apply more efficient methods of skipping unneeded data. The position value of the segment is used in conjunction with the start value to convert the buffer timestamps into the stream time. This is usually done in sinks to report the current stream_time. position represents the stream_time of a buffer carrying a timestamp of start. position cannot be -1. start cannot be -1, stop can be -1. If there is a valid stop given, it must be greater or equal the start, including when the indicated playback rate is < 0. The applied_rate value provides information about any rate adjustment that has already been made to the timestamps and content on the buffers of the stream. (rate * applied_rate) should always equal the rate that has been requested for playback. For example, if an element has an input segment with intended playback rate of 2.0 and applied_rate of 1.0, it can adjust incoming timestamps and buffer content by half and output a newsegment event with rate of 1.0 and applied_rate of 2.0

Parameters

update int

Whether this segment is an update to a previous one

rate double

A new rate for playback

appliedRate double

The rate factor which has already been applied

format GstFormat

The format of the segment values

start long

The start value of the segment

stop long

The stop value of the segment

position long

stream position

Throws

ConstructionException GTK+ fails to create the object.

Meta