gstreamermm  0.10.10.2
Public Member Functions | Static Public Member Functions
Gst::QueryLatency Class Reference

A latency query object. More...

Inheritance diagram for Gst::QueryLatency:
Inheritance graph
[legend]
Collaboration diagram for Gst::QueryLatency:
Collaboration graph
[legend]

List of all members.

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) const
 Parse a latency query answer.
bool parse_live () const
 Parse a latency query answer, returning the live status.
ClockTime parse_min () const
 Parse a latency query answer, returning the minimum latency.
ClockTime parse_max () const
 Parse a latency query answer, returning the maximum latency.

Static Public Member Functions

static Glib::RefPtr< Gst::Querycreate ()
 Constructs a new latency query object.

Detailed Description

A latency query object.

See create() for more details.


Constructor & Destructor Documentation

Gst::QueryLatency::QueryLatency ( GstQuery *  query) [explicit]

Member Function Documentation

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.

Returns:
The new Gst::QueryLatency.
void Gst::QueryLatency::parse ( bool &  live,
ClockTime min_latency,
ClockTime max_latency 
) const

Parse a latency query answer.

Use the other parse() methods for parsing individual values.

Parameters:
liveStorage for live.
min_latencyThe storage for the min latency.
max_latencyThe storage for the max latency.

Parse a latency query answer, returning the live status.

Returns:
the live satus.

Parse a latency query answer, returning the maximum latency.

Returns:
The maximum latency.

Parse a latency query answer, returning the minimum latency.

Returns:
The minimum latency.
void Gst::QueryLatency::set ( bool  live,
ClockTime  min_latency,
ClockTime  max_latency 
)

Answer a latency query by setting the requested values in the given format.

Parameters:
liveIf there is a live element upstream.
min_latencyThe minimal latency of the live element.
max_latencyThe maximal latency of the live element.

The documentation for this class was generated from the following file: