Gst: Do not initialize Gst at init

Letting the user choose when to initialize it himself
This commit is contained in:
Thibault Saunier 2013-08-26 17:35:48 -04:00
parent ab5ea83026
commit 9d1666ad07

View file

@ -259,15 +259,9 @@ class Fraction(Gst.Fraction):
Fraction = override(Fraction)
__all__.append('Fraction')
initialized, argv = Gst.init_check(sys.argv)
import _gi_gst
_gi_gst
sys.argv = list(argv)
if not initialized:
raise RuntimeError("Gst couldn't be initialized")
# maybe more python and less C some day if core turns a bit more introspection
# and binding friendly in the debug area
Gst.log = _gi_gst.log