A stream status message. More...
Inherits Gst::Message.
Public Member Functions | |
MessageStreamStatus (GstMessage* castitem) | |
void | set_object (const Glib::RefPtr< Gst::Object >& object) |
Configures the object handling the streaming thread. | |
Glib::RefPtr< Gst::Object > | get_object () const |
Extracts the object managing the streaming thread from message. | |
void | parse (Gst::StreamStatusType&type, Glib::RefPtr< Gst::Element >& owner) const |
Extracts the stream status type and owner of the Gst::Message. | |
Gst::StreamStatusType | parse () const |
Extracts the stream status type. | |
Glib::RefPtr< Gst::Element > | parse_owner () const |
Extracts the owner of the Gst::Message. | |
Static Public Member Functions | |
static Glib::RefPtr< Gst::Message > | create (const Glib::RefPtr< Gst::Object >& src, Gst::StreamStatusType type, const Glib::RefPtr< Gst::Element >& owner) |
Create a new stream status message. |
A stream status message.
See create() for more details.
Gst::MessageStreamStatus::MessageStreamStatus | ( | GstMessage * | castitem | ) | [explicit] |
static Glib::RefPtr<Gst::Message> Gst::MessageStreamStatus::create | ( | const Glib::RefPtr< Gst::Object >& | src, | |
Gst::StreamStatusType | type, | |||
const Glib::RefPtr< Gst::Element >& | owner | |||
) | [static] |
Create a new stream status message.
This message is posted when a streaming thread is created/destroyed or when the state changed.
src | The object originating the message. | |
type | The stream status type. | |
owner | The owner element of src. |
Glib::RefPtr<Gst::Object> Gst::MessageStreamStatus::get_object | ( | ) | const |
Extracts the object managing the streaming thread from message.
Gst::StreamStatusType Gst::MessageStreamStatus::parse | ( | ) | const |
Extracts the stream status type.
MT safe.
Since 0.10.24.
void Gst::MessageStreamStatus::parse | ( | Gst::StreamStatusType& | type, | |
Glib::RefPtr< Gst::Element >& | owner | |||
) | const |
Extracts the stream status type and owner of the Gst::Message.
The returned owner remains valid for as long as the reference to the message is valid.
MT safe.
type | A reference to hold the status type. | |
owner | A reference to hold the owner Gst::Element. |
Since 0.10.24.
Glib::RefPtr<Gst::Element> Gst::MessageStreamStatus::parse_owner | ( | ) | const |
Extracts the owner of the Gst::Message.
The returned owner remains valid for as long as the reference to the message is valid.
MT safe.
Since 0.10.24.
void Gst::MessageStreamStatus::set_object | ( | const Glib::RefPtr< Gst::Object >& | object | ) |
Configures the object handling the streaming thread.
This is usually a Gst::Task object but other objects might be added in the future.
object | The object controlling the streaming. |
Since 0.10.24.