#include <query.h>

Public Member Functions | |
| QueryDuration (GstQuery* query) | |
| void | set (Format format, gint64 duration) |
| Answer a duration query by setting the requested value in the given format. | |
| void | parse (Format& format, gint64& duration) |
| Parse a duration query answer. | |
| gint64 | parse () |
| Parse a duration query answer, returning the duration. | |
| Format | parse_format () |
| Parse a duration query answer, returning the format of the duration. | |
Static Public Member Functions | |
| static Glib::RefPtr<Query> | create (Format format) |
| Constructs a new stream duration query object to query in the given format. | |
See create() for more details.
| Gst::QueryDuration::QueryDuration | ( | GstQuery * | query | ) | [explicit] |
Constructs a new stream duration query object to query in the given format.
A duration query will give the total length of the stream.
| format | The Gst::Format for this duration query. |
| void Gst::QueryDuration::set | ( | Format | format, | |
| gint64 | duration | |||
| ) |
Answer a duration query by setting the requested value in the given format.
| format | The Gst::Format for the duration. | |
| duration | The duration of the stream. |
| void Gst::QueryDuration::parse | ( | Format& | format, | |
| gint64 & | duration | |||
| ) |
Parse a duration query answer.
Write the format of the duration into format, and the value into duration. Use the other parse() methods for parsing individual values.
| format | The storage for the Gst::Format of the duration value. | |
| duration | The storage for the total duration. |
| gint64 Gst::QueryDuration::parse | ( | ) |
| Format Gst::QueryDuration::parse_format | ( | ) |
Parse a duration query answer, returning the format of the duration.
1.5.5