Changing bin state to NULL fails when there is a locked child which is locked
Submitted by Olivier Crête
If a pipeline (or any bin) has a child which has it's state locked and it's last transition was a failure, then the pipeline/bin transition to the NULL state will fail. But it is my understanding that gst_element_set_state(GST_STATE_NULL) should never fail.
I'm attaching a patch that just transforms failure into success in the locked case if the target is READY or NULL.
Python test program:
p = Gst.Pipeline()
s = Gst.ElementFactory.make("filesrc", None)