org.gstreamer.event
Class FlushStartEvent

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.MiniObject
                      extended by org.gstreamer.Event
                          extended by org.gstreamer.event.FlushStartEvent

public class FlushStartEvent
extends Event

Start a flush operation.

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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, LIFECYCLE, ownsHandle
 
Constructor Summary
FlushStartEvent()
          Creates a new flush start event.
FlushStartEvent(NativeObject.Initializer init)
          This constructor is for internal use only.
 
Method Summary
 
Methods inherited from class org.gstreamer.Event
getStructure
 
Methods inherited from class org.gstreamer.MiniObject
disposeNativeHandle, isWritable, makeWritable, objectFor, ref, unref
 
Methods inherited from class org.gstreamer.lowlevel.NativeObject
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlushStartEvent

public FlushStartEvent(NativeObject.Initializer init)
This constructor is for internal use only.

Parameters:
init - initialization data.

FlushStartEvent

public FlushStartEvent()
Creates a new flush start event.