gi: Check Gst has not been initialized before loading bindings

It can have been initialized by some C code (in a C app with plugins
for example).

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=788088
This commit is contained in:
Thibault Saunier 2017-09-24 21:43:49 -03:00 committed by Thibault Saunier
parent 063562c986
commit fb9401d6e9

View file

@ -633,4 +633,5 @@ def deinit():
Gst.deinit = deinit
deinit_pygst()
if not Gst.is_initialized():
deinit_pygst()