mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
overrides: use get_introspection_module
https://bugzilla.gnome.org/show_bug.cgi?id=795555
This commit is contained in:
parent
861a67bde6
commit
e84b9b05f2
2 changed files with 5 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
||||||
import sys
|
import sys
|
||||||
import inspect
|
import inspect
|
||||||
from ..overrides import override
|
from ..overrides import override
|
||||||
from ..importer import modules
|
from ..module import get_introspection_module
|
||||||
|
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
|
|
||||||
|
@ -40,7 +40,8 @@ else:
|
||||||
_basestring = basestring
|
_basestring = basestring
|
||||||
_callable = callable
|
_callable = callable
|
||||||
|
|
||||||
Gst = modules['Gst']._introspection_module
|
Gst = get_introspection_module('Gst')
|
||||||
|
|
||||||
__all__ = []
|
__all__ = []
|
||||||
|
|
||||||
if Gst._version == '0.10':
|
if Gst._version == '0.10':
|
||||||
|
|
|
@ -25,14 +25,14 @@
|
||||||
# any later version.
|
# any later version.
|
||||||
|
|
||||||
from ..overrides import override as override_
|
from ..overrides import override as override_
|
||||||
from ..importer import modules
|
from ..module import get_introspection_module
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('Gst', '1.0')
|
gi.require_version('Gst', '1.0')
|
||||||
|
|
||||||
from gi.repository import Gst # noqa
|
from gi.repository import Gst # noqa
|
||||||
|
|
||||||
GstPbutils = modules['GstPbutils']._introspection_module
|
GstPbutils = get_introspection_module('GstPbutils')
|
||||||
__all__ = []
|
__all__ = []
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue