Gst.Object.prototype.has_ancestor
function has_ancestor(ancestor:Gst.Object):Boolean { // Gjs wrapper for gst_object_has_ancestor() }
Check if object has an ancestor ancestor somewhere up in the hierarchy. One can e.g. check if a Gst.Element is inside a Gst.Pipeline.
- ancestor
a Gst.Object to check as ancestor
- Returns
TRUE if ancestor is an ancestor of object. MT safe. Grabs and releases object's locks.