Sets our main struct and passes it to the parent class.
Constructs a new query object for querying the allocation properties.
Constructs a new query object for querying the bitrate.
Constructs a new query object for querying the buffering status of a stream.
Constructs a new query object for querying the caps.
Constructs a new query object for querying the pipeline-local context.
Constructs a new convert query object. Use Query.unref when done with it. A convert query is used to ask for a conversion between one format and another.
Constructs a new custom query object. Use Query.unref when done with it.
Add api with params as one of the supported metadata API to query.
Add allocator and its params as a supported memory allocator.
Set the pool parameters in query.
Set the buffering-ranges array field in query. The current last start position of the array should be inferior to start.
Add mode as one of the supported scheduling modes to query.
Check if query has metadata api set. When this function returns TRUE, index will contain the index where the requested API and the parameters can be found.
Retrieve the number of values currently stored in the meta API array of the query's structure.
Retrieve the number of values currently stored in the allocator params array of the query's structure.
Retrieve the number of values currently stored in the pool array of the query's structure.
Retrieve the number of values currently stored in the buffered-ranges array of the query's structure.
Retrieve the number of values currently stored in the scheduling mode array of the query's structure.
Get the main Gtk struct
the main Gtk struct as a void*
Get the structure of a query.
Check if query has scheduling mode set.
Check if query has scheduling mode set and flags is set in query scheduling flags.
Get the caps from query. The caps remains valid as long as query remains valid.
Parse the result from query and store in result.
Parse an allocation query, writing the requested caps in caps and whether a pool is needed in need_pool, if the respective parameters are non-NULL.
Get the results of a bitrate query. See also Query.setBitrate.
Get the percentage of buffered data. This is a value between 0 and 100. The busy indicator is TRUE when the buffering is in progress.
Parse an available query, writing the format into format, and other results into the passed parameters, if the respective parameters are non-NULL
Extracts the buffering stats values from query.
Get the filter from the caps query. The caps remains valid as long as query remains valid.
Get the caps result from query. The caps remains valid as long as query remains valid.
Get the context from the context query. The context remains valid as long as query remains valid.
Parse a context type from an existing GST_QUERY_CONTEXT query.
Parse a convert query answer. Any of src_format, src_value, dest_format, and dest_value may be NULL, in which case that value is omitted.
Parse a duration query answer. Write the format of the duration into format, and the value into duration, if the respective variables are non-NULL.
Parse a latency query answer.
Parse the number of formats in the formats query.
Parse an available query and get the metadata API at index of the metadata API array.
Parse an available query and get the allocator and its params at index of the allocator array.
Get the pool parameters in query.
Parse an available query and get the start and stop values stored at the index of the buffered ranges array.
Parse the format query and retrieve the nth format from it into format. If the list contains less elements than nth, format will be set to GST_FORMAT_UNDEFINED.
Parse an available query and get the scheduling mode at index of the scheduling modes array.
Parse a position query, writing the format into format, and the position into cur, if the respective parameters are non-NULL.
Set the scheduling properties.
Parse a seeking query, writing the format into format, and other results into the passed parameters, if the respective parameters are non-NULL
Parse a segment query answer. Any of rate, format, start_value, and stop_value may be NULL, which will cause this value to be omitted.
Parse an URI query, writing the URI into uri as a newly allocated string, if the respective parameters are non-NULL. Free the string with g_free() after usage.
Parse an URI query, writing the URI into uri as a newly allocated string, if the respective parameters are non-NULL. Free the string with g_free() after usage.
Parse an URI query, and set permanent to TRUE if there is a redirection and it should be considered permanent. If a redirection is permanent, applications should update their internal storage of the URI, otherwise they should make all future requests to the original URI.
Remove the metadata API at index of the metadata API array.
Remove the allocation param at index of the allocation param array.
Remove the allocation pool at index of the allocation pool array.
Set result as the result for the query.
Set the results of a bitrate query. The nominal bitrate is the average bitrate expected over the length of the stream as advertised in file headers (or similar).
Set the percentage of buffered data. This is a value between 0 and 100. The busy indicator is TRUE when the buffering is in progress.
Set the available query result fields in query.
Configures the buffering stats values in query.
Set the caps result in query.
Answer a context query by setting the requested context.
Answer a convert query by setting the requested values.
Answer a duration query by setting the requested value in the given format.
Set the formats query result fields in query. The number of formats passed in the formats array must be equal to n_formats.
Answer a latency query by setting the requested values in the given format.
Parse an available query and get the allocator and its params at index of the allocator array.
Set the pool parameters in query.
Answer a position query by setting the requested value in the given format.
Set the scheduling properties.
Set the seeking query result fields in query.
Answer a segment query by setting the requested values. The normal playback segment of a pipeline is 0 to duration at the default rate of 1.0. If a seek was performed on the pipeline to play a different segment, this query will return the range specified in the last seek.
Answer a URI query by setting the requested URI.
Answer a URI query by setting the requested URI redirection.
Answer a URI query by setting the requested URI redirection to permanent or not.
Get the structure of a query. This method should be called with a writable query so that the returned structure is guaranteed to be writable.
Constructs a new query object for querying if caps are accepted. Free-function: gst_query_unref
Constructs a new query object for querying the drain state. Free-function: gst_query_unref
Constructs a new stream duration query object to query in the given format. Use Query.unref when done with it. A duration query will give the total length of the stream.
Constructs a new query object for querying formats of the stream.
Constructs a new latency query object. Use Query.unref when done with it. A latency query is usually performed by sinks to compensate for additional latency introduced by elements in the pipeline. Free-function: gst_query_unref
Constructs a new query stream position query object. Use Query.unref when done with it. A position query is used to query the current position of playback in the streams, in some format.
Constructs a new query object for querying the scheduling properties. Free-function: gst_query_unref
Constructs a new query object for querying seeking properties of the stream.
Constructs a new segment query object. Use Query.unref when done with it. A segment query is used to discover information about the currently configured segment for playback.
Constructs a new query URI query object. Use Query.unref when done with it. An URI query is used to query the current URI that is used by the source or sink. Free-function: gst_query_unref
Gets the GstQueryTypeFlags associated with type.
Get a printable name for the given query type. Do not modify or free.
Get the unique quark for the given query type.
the main Gtk struct
Queries can be performed on pads (Pad.query) and elements (Element.query). Please note that some queries might need a running pipeline to work.
Queries can be created using the gst_query_new_*() functions. Query values can be set using gst_query_set_*(), and parsed using gst_query_parse_*() helpers.
The following example shows how to query the duration of a pipeline: