![]() |
![]() |
![]() |
GStreamer 0.10 Core Reference Manual | ![]() |
---|---|---|---|---|
#include <gst/gst.h> enum GstClockType; GstSystemClock; GstClock* gst_system_clock_obtain (void);
The GStreamer core provides a GstSystemClock based on the system time. Asynchronous callbacks are scheduled from an internal thread.
Clock implementors are encouraged to subclass this systemclock as it implements the async notification.
Subclasses can however override all of the important methods for sync and async notifications to implement their own callback methods or blocking wait operations.
Last reviewed on 2006-03-08 (0.10.4)
typedef enum { GST_CLOCK_TYPE_REALTIME = 0, GST_CLOCK_TYPE_MONOTONIC = 1 } GstClockType;
The different kind of clocks.
typedef struct _GstSystemClock GstSystemClock;
The default implementation of a GstClock that uses the system time.
GstClock* gst_system_clock_obtain (void);
Get a handle to the default system clock. The refcount of the clock will be increased so you need to unref the clock after usage.
Returns : | the default clock. MT safe. |
"clock-type"
property"clock-type" GstClockType : Read / Write
The type of underlying clock implementation used.
Default value: GST_CLOCK_TYPE_MONOTONIC