smpte: don't register transition types twice
This commit is contained in:
parent
42dea672fa
commit
eeccb330d0
@ -948,10 +948,16 @@ static const GstMaskDefinition definitions[] = {
|
|||||||
void
|
void
|
||||||
_gst_barboxwipes_register (void)
|
_gst_barboxwipes_register (void)
|
||||||
{
|
{
|
||||||
gint i = 0;
|
static gsize id = 0;
|
||||||
|
|
||||||
while (definitions[i].short_name) {
|
if (g_once_init_enter (&id)) {
|
||||||
_gst_mask_register (&definitions[i]);
|
gint i = 0;
|
||||||
i++;
|
|
||||||
|
while (definitions[i].short_name) {
|
||||||
|
_gst_mask_register (&definitions[i]);
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
g_once_init_leave (&id, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user