Commit 9a8db128 authored by Edward Hervey's avatar Edward Hervey 🤘

__init__: Postpone registry update during initialization. Fixes #576145

parent 1cd54e6d
......@@ -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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment