#include <query.h>
Public Member Functions | |
QueryPosition (GstQuery* query) | |
void | set (Format format, gint64 position) |
Answer a position query by setting the requested value in the given format. | |
void | parse (Format& format, gint64& position) |
Parse a position query, writing the format into format, and the position into position. | |
gint64 | parse () |
Parse the position of a position query, returning the position. | |
Format | parse_format () |
Parse the format of a position query, returning the format. | |
Static Public Member Functions | |
static Glib::RefPtr<Gst::Query> | create (Format format) |
Constructs a new query stream position query object. |
See create() for more details.
Gst::QueryPosition::QueryPosition | ( | GstQuery * | query | ) | [explicit] |
static Glib::RefPtr<Gst::Query> Gst::QueryPosition::create | ( | Format | format | ) | [static] |
Constructs a new query stream position query object.
A position query is used to query the current position of playback in the streams, in some format.
format | The default Gst::Format for the new query. |
gint64 Gst::QueryPosition::parse | ( | ) |
Parse the position of a position query, returning the position.
void Gst::QueryPosition::parse | ( | Format& | format, | |
gint64 & | position | |||
) |
Parse a position query, writing the format into format, and the position into position.
Use the other parse() methods for parsing individual values.
format | The storage for the Gst::Format of the position values. | |
position | The storage for the current position. |
Format Gst::QueryPosition::parse_format | ( | ) |
Parse the format of a position query, returning the format.
void Gst::QueryPosition::set | ( | Format | format, | |
gint64 | position | |||
) |
Answer a position query by setting the requested value in the given format.
format | The requested Gst::Format. | |
position | The position to set. |