gst/__init__.py: del ltihooks properly; fixes loading of testhelper in testsuite

Original commit message from CVS:
* gst/__init__.py:
del ltihooks properly; fixes loading of testhelper in testsuite
* gst/gst.defs:
wrap link_filtered
This commit is contained in:
Thomas Vander Stichele 2005-08-31 15:28:37 +00:00
parent 0a961e4d7f
commit b9d59e3e99
4 changed files with 42 additions and 2 deletions

View file

@ -1,3 +1,18 @@
2005-08-31 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/__init__.py:
del ltihooks properly; fixes loading of testhelper in testsuite
* gst/gst.defs:
wrap link_filtered
2005-08-26 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
require base and controller as well since we wrap them
* gst/__init__.py:
if using ltihooks, import interfaces and then uninstall our
module importer so we don't crap all over someone else's
2005-08-19 Andy Wingo <wingo@pobox.com>
* gst/interfaces.defs (MixerTrack): MixerTrack is a GObject. How

2
common

@ -1 +1 @@
Subproject commit 8ff526a316f9b576e727b8e32cba0a53cdec07a6
Subproject commit 3fb3bedc9180bab9dc8c2dc784c9327bd1cc8109

View file

@ -21,11 +21,15 @@
#
# Author: David I. Lehn <dlehn@users.sourceforge.net>
__ltihooks_used__ = False
try:
import ltihooks
import ltihooks
__ltihooks_used__ = True
except:
pass
import ltihooks
import gobject
del gobject
@ -73,3 +77,14 @@ class Fraction(Value):
return '<gst.Fraction %d/%d>' % (self.num, self.denom)
from _gst import *
# this restores previously installed importhooks, so we don't interfere
# with other people's module importers
# it also clears out the module completely as if it were never loaded,
# so that if anyone else imports ltihooks the hooks get installed
if __ltihooks_used__:
import gst.interfaces as interfaces
ltihooks.uninstall()
__ltihooks_used__ = False
del ltihooks
import sys
del sys.modules['ltihooks']

View file

@ -5676,6 +5676,16 @@
)
)
(define-method link_filtered
(of-object "GstElement")
(c-name "gst_element_link_filtered")
(return-type "gboolean")
(parameters
'("GstElement*" "dest")
'("GstCaps*" "filter")
)
)
(define-function element_unlink_many
(c-name "gst_element_unlink_many")
(return-type "none")