Hi,
 
I have a pipeline as gst_bin_add_many (GST_BIN (bin), source, decoder, sink, NULL);, when I call gst_element_set_state (bin, GST_STATE_PLAYING); then state change sequence is
 
gst_element_set_state (sink, GST_STATE_READY);
gst_element_set_state (decoder, GST_STATE_READY);
gst_element_set_state (source, GST_STATE_READY);
 
gst_element_set_state (sink, GST_STATE_PAUSED);
gst_element_set_state (decoder, GST_STATE_PAUSED);
gst_element_set_state (source, GST_STATE_PAUSED );
 
gst_element_set_state (sink, GST_STATE_PLAYING);
gst_element_set_state (decoder, GST_STATE_PLAYING);
gst_element_set_state (source, GST_STATE_PLAYING);
 
In my pipeline source is the first element, sink is the last element but state change calling sequence is in reverse order, Anybody knows why this is happening?
 
Thanks
Purush