diff options
author | Leo Singer <lsinger@calltech.edu> | 2010-08-30 11:57:07 +0200 |
---|---|---|
committer | Alessandro Decina <alessandro.d@gmail.com> | 2010-08-30 11:57:07 +0200 |
commit | 2c31e12c5eccf74415ccdc643affa5c81547d4da (patch) | |
tree | 868e21aa8272305be5080da1e9cb2bc470ed79b1 | |
parent | 01dda89d42ed5b72d3dde6b6432245dc968f8114 (diff) |
plugin: fix spurious exceptions in pygst_require. Fixes #624592.
-rw-r--r-- | plugin/gstpythonplugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c index f7e37a5..b0c45d5 100644 --- a/plugin/gstpythonplugin.c +++ b/plugin/gstpythonplugin.c @@ -285,2 +285,3 @@ pygst_require (gchar * version) if (!(gst = PyMapping_GetItemString (modules, "gst"))) { + PyErr_Clear (); @@ -289,2 +290,4 @@ pygst_require (gchar * version) if (!(pygst = PyMapping_GetItemString (modules, "pygst"))) { + PyErr_Clear (); + if (!(pygst = PyImport_ImportModule ("pygst"))) { |