gst/__init__.py: Import libxml2 (if available) at import time with GLOBAL and LAZY flags.

Original commit message from CVS:
* gst/__init__.py:
Import libxml2 (if available) at import time with GLOBAL and LAZY flags.
Fixes #398567
This commit is contained in:
Edward Hervey 2007-03-02 11:03:46 +00:00
parent 34f77d7db3
commit e8b581108d
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-03-02 Edward Hervey <edward@fluendo.com>
* gst/__init__.py:
Import libxml2 (if available) at import time with GLOBAL and LAZY flags.
Fixes #398567
2007-03-01 Edward Hervey <edward@fluendo.com> 2007-03-01 Edward Hervey <edward@fluendo.com>
* gst/__init__.py: * gst/__init__.py:

View file

@ -112,7 +112,11 @@ if RTLD_GLOBAL != -1 and RTLD_LAZY != -1:
sys.setdlopenflags(RTLD_LAZY | RTLD_GLOBAL) sys.setdlopenflags(RTLD_LAZY | RTLD_GLOBAL)
from _gst import * from _gst import *
import interfaces import interfaces
try:
import libxml2
except:
pass
version = get_gst_version version = get_gst_version
sys.setdlopenflags(dlsave) sys.setdlopenflags(dlsave)