Gst.Caps.prototype.intersect_full

function intersect_full(caps2:Gst.Caps, mode:Gst.CapsIntersectMode):Gst.Caps {
    // Gjs wrapper for gst_caps_intersect_full()
}

Creates a new Gst.Caps that contains all the formats that are common to both caps1 and caps2, the order is defined by the Gst.CapsIntersectMode used.

caps2

a Gst.Caps to intersect

mode

The intersection algorithm/mode to use

Returns

the new Gst.Caps