Gst::MessageClockProvide Class Reference

A clock provide message. More...

#include <message.h>

Inheritance diagram for Gst::MessageClockProvide:

Gst::Message Gst::MiniObject

List of all members.

Public Member Functions

 MessageClockProvide (GstMessage* message)
void parse (Glib::RefPtr<Gst::Clock>& clock, bool& ready)
 Extracts the clock and ready flag from the Gst::MessageClockProvide.
Glib::RefPtr<Gst::Clockparse ()
 Extracts and returns the clock from the Gst::MessageClockProvide.
bool parse_ready ()
 Extracts and returns the ready flag from the Gst::MessageClockProvide.

Static Public Member Functions

static Glib::RefPtr<Gst::Messagecreate (const Glib::RefPtr<Gst::Object>& src, const Glib::RefPtr<Gst::Clock>& clock, bool ready)
 Create a clock provide message.


Detailed Description

A clock provide message.

See create() for more details.


Constructor& Destructor Documentation

Gst::MessageClockProvide::MessageClockProvide ( GstMessage *  message  )  [explicit]


Member Function Documentation

static Glib::RefPtr<Gst::Message> Gst::MessageClockProvide::create ( const Glib::RefPtr<Gst::Object>&  src,
const Glib::RefPtr<Gst::Clock>&  clock,
bool  ready 
) [static]

Create a clock provide message.

This message is posted whenever an element is ready to provide a clock or lost its ability to provide a clock (maybe because it paused or became EOS).

This message is mainly used internally to manage the clock selection.

Parameters:
src The object originating the message.
clock The clock it provides.
ready true if the sender can provide a clock.
Returns:
The new provide clock message. MT safe.

Glib::RefPtr<Gst::Clock> Gst::MessageClockProvide::parse (  ) 

Extracts and returns the clock from the Gst::MessageClockProvide.

The clock object returned remains valid until the message is freed.

MT safe.

Returns:
The clock object of the message.

void Gst::MessageClockProvide::parse ( Glib::RefPtr<Gst::Clock>&  clock,
bool &  ready 
)

Extracts the clock and ready flag from the Gst::MessageClockProvide.

The clock object returned remains valid until the message is freed.

MT safe.

Parameters:
clock Location in which to hold a clock object.
ready Location in which to hold the ready flag.

bool Gst::MessageClockProvide::parse_ready (  ) 

Extracts and returns the ready flag from the Gst::MessageClockProvide.

MT safe.

Returns:
The ready flag of the message.


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