public class FlushStartEvent extends Event
The flush start event can be sent upstream and downstream and travels out-of-bounds with the dataflow.
It marks pads as being flushing and will make them return
FlowReturn.WRONG_STATE
when used for data flow with Pad.pushEvent(org.gstreamer.Event)
,
Pad.chain(org.gstreamer.Buffer)
, Pad#allocBuffer, Pad.getRange(long, int, org.gstreamer.Buffer[])
and
Pad.pullRange(long, int, org.gstreamer.Buffer[])
. Any event (except a FlushStopEvent
) received
on a flushing pad will return false
immediately.
Elements should unlock any blocking functions and exit their streaming functions as fast as possible when this event is received.
This event is typically generated after a seek to flush out all queued data in the pipeline so that the new media is played as soon as possible.
NativeObject.Initializer
defaultInit, LIFECYCLE, ownsHandle
Constructor and Description |
---|
FlushStartEvent()
Creates a new flush start event.
|
FlushStartEvent(NativeObject.Initializer init)
This constructor is for internal use only.
|
getStructure
disposeNativeHandle, isWritable, makeWritable, ref, unref
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString
public FlushStartEvent(NativeObject.Initializer init)
init
- initialization data.public FlushStartEvent()