X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstsystemclock.h;h=0cee1c94cd4bd16e1d7ba72433c4b0861c397879;hb=b89b1802df44829a0c034db5807bc893ad3c7774;hp=490f70086a4d7b80e86c0329e24060fb30003e8a;hpb=544aa9773a3b28c778e6b75cc5bfa4c89e4887a2;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstsystemclock.h b/gst/gstsystemclock.h index 490f700..0cee1c9 100644 --- a/gst/gstsystemclock.h +++ b/gst/gstsystemclock.h @@ -17,8 +17,8 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ @@ -47,12 +47,14 @@ typedef struct _GstSystemClockPrivate GstSystemClockPrivate; * @GST_CLOCK_TYPE_REALTIME: time since Epoch * @GST_CLOCK_TYPE_MONOTONIC: monotonic time since some unspecified starting * point + * @GST_CLOCK_TYPE_OTHER: some other time source is used (Since 1.0.5) * * The different kind of clocks. */ typedef enum { GST_CLOCK_TYPE_REALTIME = 0, - GST_CLOCK_TYPE_MONOTONIC = 1 + GST_CLOCK_TYPE_MONOTONIC = 1, + GST_CLOCK_TYPE_OTHER = 2 } GstClockType; /** @@ -64,10 +66,6 @@ struct _GstSystemClock { GstClock clock; /*< private >*/ - GThread *thread; /* thread for async notify */ - gboolean stopping; - - /* ABI added */ GstSystemClockPrivate *priv; gpointer _gst_reserved[GST_PADDING]; @@ -80,10 +78,19 @@ struct _GstSystemClockClass { gpointer _gst_reserved[GST_PADDING]; }; +GST_API GType gst_system_clock_get_type (void); +GST_API GstClock* gst_system_clock_obtain (void); +GST_API +void gst_system_clock_set_default (GstClock *new_clock); + +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstSystemClock, gst_object_unref) +#endif + G_END_DECLS #endif /* __GST_SYSTEM_CLOCK_H__ */