Gst.Bin.prototype.remove

function remove(element:Gst.Element):Boolean {
    // Gjs wrapper for gst_bin_remove()
}

Removes the element from the bin, unparenting it as well. Unparenting the element means that the element will be dereferenced, so if the bin holds the only reference to the element, the element will be freed in the process of removing it from the bin. If you want the element to still exist after removing, you need to call Gst.ref before removing it from the bin.

If the element's pads are linked to other pads, the pads will be unlinked before the element is removed from the bin.

MT safe.

element

the Gst.Element to remove

Returns

TRUE if the element could be removed, FALSE if the bin does not want to remove the element.