Gst::QueryDuration Class Reference

A stream duration query object. More...

#include <query.h>

Inheritance diagram for Gst::QueryDuration:

Gst::Query Gst::MiniObject

List of all members.

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<Gst::Querycreate (Format format)
 Constructs a new stream duration query object to query in the given format.


Detailed Description

A stream duration query object.

See create() for more details.


Constructor& Destructor Documentation

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


Member Function Documentation

static Glib::RefPtr<Gst::Query> Gst::QueryDuration::create ( Format  format  )  [static]

Constructs a new stream duration query object to query in the given format.

A duration query will give the total length of the stream.

Parameters:
format The Gst::Format for this duration query.
Returns:
The new Gst::QueryDuration.

gint64 Gst::QueryDuration::parse (  ) 

Parse a duration query answer, returning the duration.

Returns:
The total duration.

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.

Parameters:
format The storage for the Gst::Format of the duration value.
duration The storage for the total duration.

Format Gst::QueryDuration::parse_format (  ) 

Parse a duration query answer, returning the format of the duration.

Returns:
The Gst::Format of the duration value.

void Gst::QueryDuration::set ( Format  format,
gint64  duration 
)

Answer a duration query by setting the requested value in the given format.

Parameters:
format The Gst::Format for the duration.
duration The duration of the stream.


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

Generated on Thu Jan 15 09:33:13 2009 for gstreamermm by  doxygen 1.5.7.1