check_uniqueness

function check_uniqueness(list:[Gst.Object], name:String):Boolean {
    // Gjs wrapper for gst_object_check_uniqueness()
}

Checks to see if there is any object named name in list. This function does not do any locking of any kind. You might want to protect the provided list with the lock of the owner of the list. This function will lock each Gst.Object in the list to compare the name, so be carefull when passing a list with a locked object.

list

a list of Gst.Object to check through

name

the name to search for

Returns

TRUE if a Gst.Object named name does not appear in list, FALSE if it does. MT safe. Grabs and releases the LOCK of each object in the list.