mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
__init__: Postpone registry update during initialization. Fixes #576145
This commit is contained in:
parent
1cd54e6d45
commit
9a8db128d0
1 changed files with 11 additions and 0 deletions
|
@ -189,6 +189,12 @@ try:
|
|||
import libxml2
|
||||
except:
|
||||
pass
|
||||
|
||||
# disable registry update during initialization
|
||||
import os
|
||||
doupdate = os.getenv("GST_REGISTRY_UPDATE") != "no"
|
||||
os.environ["GST_REGISTRY_UPDATE"] = "no"
|
||||
|
||||
from _gst import *
|
||||
import interfaces
|
||||
|
||||
|
@ -226,3 +232,8 @@ if gstlibtoolimporter is not None:
|
|||
gstlibtoolimporter.uninstall()
|
||||
import sys
|
||||
del sys.modules["gstlibtoolimporter"]
|
||||
|
||||
if doupdate:
|
||||
# update the registry now that we've loaded all symbols
|
||||
os.unsetenv("GST_REGISTRY_UPDATE")
|
||||
update_registry()
|
||||
|
|
Loading…
Reference in a new issue