#include <query.h>
Public Member Functions | |
QueryLatency (GstQuery* query) | |
void | set (bool live, ClockTime min_latency, ClockTime max_latency) |
Answer a latency query by setting the requested values in the given format. | |
void | parse (bool& live, ClockTime& min_latency, ClockTime& max_latency) |
Parse a latency query answer. | |
bool | parse_live () |
Parse a latency query answer, returning the live status. | |
ClockTime | parse_min () |
Parse a latency query answer, returning the minimum latency. | |
ClockTime | parse_max () |
Parse a latency query answer, returning the maximum latency. | |
Static Public Member Functions | |
static Glib::RefPtr<Gst::Query> | create () |
Constructs a new latency query object. |
See create() for more details.
Gst::QueryLatency::QueryLatency | ( | GstQuery * | query | ) | [explicit] |
static Glib::RefPtr<Gst::Query> Gst::QueryLatency::create | ( | ) | [static] |
Constructs a new latency query object.
A latency query is usually performed by sinks to compensate for additional latency introduced by elements in the pipeline.
bool Gst::QueryLatency::parse_live | ( | ) |
ClockTime Gst::QueryLatency::parse_max | ( | ) |
ClockTime Gst::QueryLatency::parse_min | ( | ) |
Answer a latency query by setting the requested values in the given format.
live | If there is a live element upstream. | |
min_latency | The minimal latency of the live element. | |
max_latency | The maximal latency of the live element. |