#include <message.h>

Public Member Functions | |
| MessageDuration (GstMessage* castitem) | |
| void | parse (Format& format, gint64& position) |
| Extracts the duration and format from the duration message. | |
| gint64 | parse () |
| Extracts and returns the duration from the duration message. | |
| Format | parse_format () |
| Extracts and returns the format from the duration message. | |
Static Public Member Functions | |
| static Glib::RefPtr<Message> | create (const Glib::RefPtr<Object>& src, Format format, gint64 position) |
| Create a new duration message. | |
See create() for more details.
| Gst::MessageDuration::MessageDuration | ( | GstMessage * | castitem | ) | [explicit] |
| static Glib::RefPtr<Message> Gst::MessageDuration::create | ( | const Glib::RefPtr<Object>& | src, | |
| Format | format, | |||
| gint64 | position | |||
| ) | [static] |
Create a new duration message.
This message is posted by elements that know the duration of a stream in a specific format. This message is received by bins and is used to calculate the total duration of a pipeline. Elements may post a duration message with a duration of Gst::CLOCK_TIME_NONE to indicate that the duration has changed and the cached duration should be discarded. The new duration can then be retrieved via a query.
| src | The object originating the message. | |
| format | The format of the duration. | |
| duration | The new duration. |
| void Gst::MessageDuration::parse | ( | Format& | format, | |
| gint64 & | position | |||
| ) |
Extracts the duration and format from the duration message.
The duration might be Gst::CLOCK_TIME_NONE, which indicates that the duration has changed. Applications should always use a query to retrieve the duration of a pipeline.
MT safe.
| format | Result location for the format. | |
| position | Result location for the position. |
| gint64 Gst::MessageDuration::parse | ( | ) |
Extracts and returns the duration from the duration message.
The duration might be Gst::CLOCK_TIME_NONE, which indicates that the duration has changed. Applications should always use a query to retrieve the duration of a pipeline.
MT safe.
| Format Gst::MessageDuration::parse_format | ( | ) |
Extracts and returns the format from the duration message.
Applications should always use a query to retrieve the duration of a pipeline.
MT safe.
1.5.5