Gst.Caps.prototype.intersect

function intersect(caps2:Gst.Caps):Gst.Caps {
    // Gjs wrapper for gst_caps_intersect()
}

Creates a new Gst.Caps that contains all the formats that are common to both caps1 and caps2. Defaults to Gst.CapsIntersectMode.zig_zag mode.

caps2

a Gst.Caps to intersect

Returns

the new Gst.Caps