Gst.Object.prototype.get_parent

function get_parent():Gst.Object {
    // Gjs wrapper for gst_object_get_parent()
}

Returns the parent of object. This function increases the refcount of the parent object so you should Gst.unref it after usage.

Returns

parent of object, this can be NULL if object has no parent. unref after usage. MT safe. Grabs and releases object's LOCK.