mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
gst-full: Prevent multiple calls to gst_init_static_plugins()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/191>
This commit is contained in:
parent
d4f95054e1
commit
89913b2f83
1 changed files with 5 additions and 1 deletions
|
@ -12,7 +12,11 @@ $plugins_declaration
|
|||
void
|
||||
gst_init_static_plugins (void)
|
||||
{
|
||||
$plugins_registration
|
||||
static gsize initialization_value = 0;
|
||||
if (g_once_init_enter (&initialization_value)) {
|
||||
$plugins_registration
|
||||
g_once_init_leave (&initialization_value, 1);
|
||||
}
|
||||
}
|
||||
''')
|
||||
|
||||
|
|
Loading…
Reference in a new issue