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
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;