query


Description:

public virtual bool query (Query query)

Performs a query on the given element.

For elements that don't implement a query handler, this function forwards the query to a random srcpad or to the peer of a random linked sinkpad of this element.

Please note that some queries might need a running pipeline to work.

Parameters:

this

a Element to perform the query on.

query

the Query.

Returns:

true if the query could be performed.

MT safe.