From 08e0fcd7b28a98f30547e7937a179073b0e1fe21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 12 Nov 2012 11:40:59 +0100 Subject: [PATCH] value: API: Add boxed type for GThread --- gst/gstvalue.c | 15 +++++++++++++++ gst/gstvalue.h | 11 +++++++++++ win32/common/libgstbase.def | 2 ++ win32/common/libgstreamer.def | 1 + 4 files changed, 29 insertions(+) diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 9c69225528..96890268a5 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 907bff748e..d984bda51b 100644 --- a/gst/gstvalue.h +++ b/gst/gstvalue.h @@ -283,6 +283,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: * @@ -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 cdd36cb4b2..a17587e8c9 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 acb9138658..c3a444ff9c 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