mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
value: Use the GLib GType for GThread if compiling against GLib 2.35.3 or newer
This commit is contained in:
parent
9326124581
commit
da0f9977f0
1 changed files with 4 additions and 0 deletions
|
@ -5846,6 +5846,9 @@ FUNC_VALUE_GET_TYPE (bitmask, "GstBitmask");
|
|||
GType
|
||||
gst_g_thread_get_type (void)
|
||||
{
|
||||
#if GLIB_CHECK_VERSION(2,35,3)
|
||||
return G_TYPE_THREAD;
|
||||
#else
|
||||
static volatile gsize type_id = 0;
|
||||
|
||||
if (g_once_init_enter (&type_id)) {
|
||||
|
@ -5857,6 +5860,7 @@ gst_g_thread_get_type (void)
|
|||
}
|
||||
|
||||
return type_id;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue