summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2007-03-02 11:03:46 +0000
committerEdward Hervey <bilboed@bilboed.com>2007-03-02 11:03:46 +0000
commite8b581108dd40c2eeb2e470f1bb5173ff8e0872b (patch)
tree7d1125ae0f7242cb7c31e9a92632949e4f5a2e7d
parent34f77d7db3735be7c9bc3f2e9bfc020c96af34df (diff)
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
-rw-r--r--ChangeLog6
-rw-r--r--gst/__init__.py6
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e9e96b6..d86a876 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* gst/__init__.py:
diff --git a/gst/__init__.py b/gst/__init__.py
index a87da9c..2c98380 100644
--- a/gst/__init__.py
+++ b/gst/__init__.py
@@ -112,7 +112,11 @@ if RTLD_GLOBAL != -1 and RTLD_LAZY != -1:
sys.setdlopenflags(RTLD_LAZY | RTLD_GLOBAL)
from _gst import *
import interfaces
-
+ try:
+ import libxml2
+ except:
+ pass
+
version = get_gst_version
sys.setdlopenflags(dlsave)