{
GstStateChangeReturn ret = GST_STATE_CHANGE_SUCCESS;
- GST_DEBUG_OBJECT (element, "Calling parent change_state");
-
- ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
-
- GST_DEBUG_OBJECT (element, "Return from parent change_state was %d", ret);
-
- if (ret == GST_STATE_CHANGE_FAILURE)
- goto beach;
-
switch (transition) {
- case GST_STATE_CHANGE_PAUSED_TO_READY:
- /* cleanup nleobject */
- if (nle_object_cleanup (NLE_OBJECT (element)) == GST_STATE_CHANGE_FAILURE)
- ret = GST_STATE_CHANGE_FAILURE;
- break;
case GST_STATE_CHANGE_NULL_TO_READY:
{
GstObject *parent = gst_object_get_parent (GST_OBJECT (element));
break;
}
+ GST_DEBUG_OBJECT (element, "Calling parent change_state");
+
+ ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
+
+ GST_DEBUG_OBJECT (element, "Return from parent change_state was %d", ret);
+
+ if (ret == GST_STATE_CHANGE_FAILURE)
+ goto beach;
+
+ switch (transition) {
+ case GST_STATE_CHANGE_PAUSED_TO_READY:
+ /* cleanup nleobject */
+ if (nle_object_cleanup (NLE_OBJECT (element)) == GST_STATE_CHANGE_FAILURE)
+ ret = GST_STATE_CHANGE_FAILURE;
+ break;
+ default:
+ break;
+ }
+
beach:
return ret;
}