playsinkconvertbin: No need to remove the identity

The identity element should be handled by the GstBin's cleanup,
removing it on the remove_elements function might remove it
too soon, as this function can be called directly from playsink
This commit is contained in:
Thiago Santos 2011-10-17 22:41:49 +00:00 committed by Sebastian Dröge
parent 34f72da9cc
commit f9ea3fdda8

View file

@ -399,11 +399,6 @@ gst_play_sink_convert_bin_remove_elements (GstPlaySinkConvertBin * self)
g_list_free (self->conversion_elements);
self->conversion_elements = NULL;
}
if (self->identity) {
gst_element_set_state (self->identity, GST_STATE_NULL);
gst_bin_remove (GST_BIN_CAST (self), self->identity);
self->identity = NULL;
}
if (self->converter_caps) {
gst_caps_unref (self->converter_caps);
self->converter_caps = NULL;