Gst.Structure.prototype.has_name

function has_name(name:String):Boolean {
    // Gjs wrapper for gst_structure_has_name()
}

Checks if the structure has the given name

name

structure name to check for

Returns

TRUE if name matches the name of the structure.