GStreamer Application Development Manual | ||
---|---|---|
<<< Previous | Next >>> |
One you have created a pipeline packed with elements, nothing will happen yet. This is where the different states come into play.
All elements can be in one of the following four states:
NULL: this is the default state all elements are in when they are created and are doing nothing.
READY: An element is ready to start doing something.
PLAYING: The element is doing something.
PAUSED: The element is paused for a period of time.
All elements start with the NULL state. The elements will go throught the following state changes:
The state of an element can be changed with the following code:
GstElement *bin; // create a bin, put elements in it and connect them ... gst_element_set_state (bin, GST_STATE_PLAYING); ... |
You can set the following states to an element:
<<< Previous | Home | Next >>> |
Buffers | Up | The NULL state |