From: Sebastian Dröge Date: Mon, 12 Nov 2012 10:40:59 +0000 (+0100) Subject: value: API: Add boxed type for GThread X-Git-Tag: 1.1.1~400 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08e0fcd7b28a98f30547e7937a179073b0e1fe21;p=platform%2Fupstream%2Fgstreamer.git value: API: Add boxed type for GThread --- diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 9c69225..9689026 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -5843,6 +5843,21 @@ static const GTypeValueTable _gst_bitmask_value_table = { FUNC_VALUE_GET_TYPE (bitmask, "GstBitmask"); +GType +gst_g_thread_get_type (void) +{ + static volatile gsize type_id = 0; + + if (g_once_init_enter (&type_id)) { + GType tmp = + g_boxed_type_register_static (g_intern_static_string ("GstGThread"), + (GBoxedCopyFunc) g_thread_ref, + (GBoxedFreeFunc) g_thread_unref); + g_once_init_leave (&type_id, tmp); + } + + return type_id; +} void _priv_gst_value_initialize (void) diff --git a/gst/gstvalue.h b/gst/gstvalue.h index 907bff7..d984bda 100644 --- a/gst/gstvalue.h +++ b/gst/gstvalue.h @@ -284,6 +284,16 @@ G_BEGIN_DECLS #define GST_TYPE_BITMASK gst_bitmask_get_type () /** + * GST_TYPE_G_THREAD: + * + * a boxed #GValue type for #GThread that represents a thread. + * + * Returns: the #GType of GstGThread + */ + +#define GST_TYPE_G_THREAD gst_g_thread_get_type () + +/** * GST_VALUE_LESS_THAN: * * Indicates that the first value provided to a comparison function @@ -380,6 +390,7 @@ GType gst_fraction_get_type (void); GType gst_value_list_get_type (void); GType gst_value_array_get_type (void); GType gst_bitmask_get_type (void); +GType gst_g_thread_get_type (void); GType gst_date_time_get_type (void); diff --git a/win32/common/libgstbase.def b/win32/common/libgstbase.def index cdd36cb..a17587e 100644 --- a/win32/common/libgstbase.def +++ b/win32/common/libgstbase.def @@ -38,6 +38,7 @@ EXPORTS gst_base_sink_get_blocksize gst_base_sink_get_last_sample gst_base_sink_get_latency + gst_base_sink_get_max_bitrate gst_base_sink_get_max_lateness gst_base_sink_get_render_delay gst_base_sink_get_sync @@ -51,6 +52,7 @@ EXPORTS gst_base_sink_set_async_enabled gst_base_sink_set_blocksize gst_base_sink_set_last_sample_enabled + gst_base_sink_set_max_bitrate gst_base_sink_set_max_lateness gst_base_sink_set_qos_enabled gst_base_sink_set_render_delay diff --git a/win32/common/libgstreamer.def b/win32/common/libgstreamer.def index acb9138..c3a444f 100644 --- a/win32/common/libgstreamer.def +++ b/win32/common/libgstreamer.def @@ -489,6 +489,7 @@ EXPORTS gst_formats_contains gst_fraction_get_type gst_fraction_range_get_type + gst_g_thread_get_type gst_ghost_pad_activate_mode_default gst_ghost_pad_construct gst_ghost_pad_get_target