Gst.Pad.prototype.peer_query_caps

function peer_query_caps(filter:Gst.Caps):Gst.Caps {
    // Gjs wrapper for gst_pad_peer_query_caps()
}

Gets the capabilities of the peer connected to this pad. Similar to Gst.query_caps.

When called on srcpads filter contains the caps that upstream could produce in the order preferred by upstream. When called on sinkpads filter contains the caps accepted by downstream in the preffered order. filter might be null but if it is not null the returned caps will be a subset of filter.

filter

a Gst.Caps filter, or NULL.

Returns

the caps of the peer pad with incremented ref-count. When there is no peer pad, this function returns filter or, when filter is null, ANY caps.