uridecodebin: fix leak when the source fails to change state

This commit is contained in:
Tim-Philipp Müller 2009-06-23 15:10:37 +01:00
parent c933933f09
commit 5974042bba

View file

@ -1901,6 +1901,12 @@ gst_uri_decode_bin_change_state (GstElement * element,
remove_source (decoder);
do_async_done (decoder);
break;
case GST_STATE_CHANGE_READY_TO_NULL:
GST_DEBUG ("ready to null");
remove_decoders (decoder);
remove_pads (decoder);
remove_source (decoder);
break;
default:
break;
}