mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
smpte: don't register transition types twice
This commit is contained in:
parent
42dea672fa
commit
eeccb330d0
1 changed files with 10 additions and 4 deletions
|
@ -948,10 +948,16 @@ static const GstMaskDefinition definitions[] = {
|
|||
void
|
||||
_gst_barboxwipes_register (void)
|
||||
{
|
||||
gint i = 0;
|
||||
static gsize id = 0;
|
||||
|
||||
while (definitions[i].short_name) {
|
||||
_gst_mask_register (&definitions[i]);
|
||||
i++;
|
||||
if (g_once_init_enter (&id)) {
|
||||
gint i = 0;
|
||||
|
||||
while (definitions[i].short_name) {
|
||||
_gst_mask_register (&definitions[i]);
|
||||
i++;
|
||||
}
|
||||
|
||||
g_once_init_leave (&id, 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue